0.1.94 • Published 2 years ago

@ever.leandros91/e-vue v0.1.94

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

e-vue

ui-library with frequently used components, adaptable to your needs. You can use each of the proposed components or just use the one you need

Demo

You can see some components documented here(this documentation is under construction) Online demo.

Installation

npm install @ever.leandros91/e-vue
import {
  EButton,
  EForm,
  ECheckbox,
  ERadio,
  RadioGroup,
  ESlider,
  EDIalog,
  ETextField,
  ERow,
  ECol,
  EIcon,
  EBar,
  ESelect,
  EExpandTransition,
} from "@ever.leandros91/e-vue";

Setting

vue app

// src/main.ts

import "@ever.leandros91/e-vue/dist/e-vue.css";
import Vue from 'vue'
import { EVue } from '@ever.leandros91/e-vue'

// this line auto imports all components and directives
Vue.use(EVue)
// vue.config.js

module.exports = {
  css: {
    loaderOptions: {
      sass: {
        prependData: `
        // This is the path to your variables
        @import "@/sass/variables.scss";
        `,
      },
    },
  },
};

nuxt app

// plugins/e-vue.js

import Vue from 'vue'
import { EVue } from '@ever.leandros91/e-vue'

Vue.use(EVue)
// nuxt.config.js

 css: [
    '@ever.leandros91/e-vue/dist/e-vue.css',
     // This is the path to your variables
    '~sass/variables.scss',
  ],
// sass/variables.scss

 @import '@ever.leandros91/e-vue/styles/override.scss';

Example variable file

// src/sass/variables.scss

// Globals
$border-radius-root: 4px;
$root-font-size: 2rem;

// Colors
$colors: (
  "primary": #f19933,
  "secondary": #2c373c,
  "white": white,
  "black": black,
  "disabled": rgba(0, 0, 0, 0.38),
  "success": #66bb6a,
  "red": #f44336,
  "error": #f44336,
);

// This is mandatory
@import "@ever.leandros91/e-vue/styles/override.scss";

SASS variables

General

$root-font-size: 1rem !default;
$border-radius-root: 1px !default;
$space-base: 12px !default;

e-button

$btn-border-radius: $border-radius-root !default;
$btn-font-weight: 500 !default;
$btn-letter-spacing: 0.0892857143em !default;
$btn-border-width: 2px !default;
$btn-rounded-border-radius: 28px !default;
$btn-text-transform: uppercase !default;
$btn-transition-duration: 0.28s !default;

$btn-states: (
  "focus": 0.05,
  "hover": 0.1,
  "active": 0.3,
) !default;

$btn-font-sizes: (
  "x-small": 0.625rem,
  "small": 0.75rem,
  "default": 0.875rem,
  "large": 0.875rem,
  "x-large": 1rem,
) !default;

$fab-font-sizes: (
  "x-small": 18px,
  "small": 20px,
  "default": 24px,
  "large": 28px,
  "x-large": 32px,
) !default;

$fab-height: (
  "x-small": 32px,
  "small": 40px,
  "default": 56px,
  "large": 64px,
  "x-large": 72px,
) !default;

$btn-height: (
  "x-small": 35px,
  "small": 40px,
  "default": 45px,
  "large": 45px,
  "x-large": 50px,
) !default;

Grid

$grid-cols: 24 !default;
$breakpoint: (
  "xs": 600px,
  "sm": 960px,
  "md": 1264px,
  "lg": 1904px,
) !default;

Colors

each of the colors defined in this file can be passed as prop="color" of the components declared in the library they also generate helper classes.

Variables
$colors: (
  "primary": #f19933,
  "secondary": #2c373c,
  "white": white,
  "black": black,
  "disabled": rgba(0, 0, 0, 0.38),
  "success": #66bb6a,
  "red": #f44336,
  "error": #f44336,
) !default;

$contrast-colors: (
  "white": black,
) !default;
Generated classes
.primary {
  background-color: #f19933;
  &--text {
    color: #f19933;
  }
}
.secondary {
  background-color: #2c373c;
  &--text {
    color: #2c373c;
  }
}
// ...

Grid Examples

Grid system comes with a 24 point built using flexbox

<!-- simple -->
<e-row>
  <e-col>column</e-col>
</e-row>

<!-- with breakpoints -->
<e-row>
  <e-col xs="12" sm="24" md="6" lg="18" xl="8">
    diferent number of columns in diferents breakpoints
  </e-col>
</e-row>

One-time Donations

If you find this project useful, you can buy me a coffee

Trust Wallet (BTC)

donate

0.1.90

2 years ago

0.1.91

2 years ago

0.1.92

2 years ago

0.1.93

2 years ago

0.1.94

2 years ago

0.1.85

2 years ago

0.1.86

2 years ago

0.1.87

2 years ago

0.1.88

2 years ago

0.1.89

2 years ago

0.1.82

2 years ago

0.1.83

2 years ago

0.1.84

2 years ago

0.1.74

2 years ago

0.1.75

2 years ago

0.1.77

2 years ago

0.1.78

2 years ago

0.1.79

2 years ago

0.1.80

2 years ago

0.1.81

2 years ago

0.1.70

2 years ago

0.1.71

2 years ago

0.1.72

2 years ago

0.1.73

2 years ago

0.1.67

2 years ago

0.1.68

2 years ago

0.1.69

2 years ago

0.1.65

2 years ago

0.1.66

2 years ago

0.1.64

2 years ago

0.1.53

2 years ago

0.1.55

2 years ago

0.1.57

2 years ago

0.1.58

2 years ago

0.1.59

2 years ago

0.1.63

2 years ago

0.1.60

2 years ago

0.1.61

2 years ago

0.1.62

2 years ago

0.1.52

2 years ago

0.1.43

2 years ago

0.1.44

2 years ago

0.1.45

2 years ago

0.1.46

2 years ago

0.1.47

2 years ago

0.1.50

2 years ago

0.1.51

2 years ago

0.1.49

2 years ago

0.1.42

2 years ago

0.1.41

2 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago