Socket
Socket
Sign inDemoInstall

gymup-vue

Package Overview
Dependencies
11
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gymup-vue

vue components


Version published
Weekly downloads
43
increased by760%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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 gymup-vue

import {
EButton,
EForm,
ERadio,
ERadioGroup,
ECheckbox,
ESlider,
ETextField,
ERow,
ECol,
EDialog,
EBar,
EIcon,
EApp,
EMain,
EContainer,
EDrawer,
EList,
EListItem,
EListGroup,
ESelect,
EExpandTransition,
EExpansion,
EExpansionContent,
ESpacer,
ECard,
ECardActions,
ECardContent,
ECardAvatar,
EDivider,
EDetails,
ESwitch,
} from "gymup-vue";

Setting

vue app

// src/main.ts

import "gymup-vue/dist/gymup-vue.css";
import Vue from 'vue'
import { EVue } from 'gymup-vue'

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



// vue.config.js

module.exports = {
  css: {
    loaderOptions: {
      sass: {
        sassOptions: {
                indentWidth: 4,
                includePaths: ["/src/assets/variables.scss"],
              }
      },
    },
  },
};

nuxt app

// plugins/gymup-vue.js

import Vue from 'vue'
import { EVue } from 'gymup-vue'

Vue.use(EVue)



// nuxt.config.js

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


// sass/variables.scss

 @import 'gymup-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 "gymup-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

Keywords

FAQs

Last updated on 18 Apr 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc