Socket
Socket
Sign inDemoInstall

@nuskin/ns-core-styles

Package Overview
Dependencies
1
Maintainers
5
Versions
84
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @nuskin/ns-core-styles

Shared styles and style modules


Version published
Weekly downloads
818
decreased by-11.09%
Maintainers
5
Install size
168 kB
Created
Weekly downloads
 

Readme

Source

core-styles

Core Styles Library for import into a .scss file or Vue component where scss is being used.

Core Styles uses the latest sass-lang api. You can either import the main.scss file or just the parts you want.

Build Setup

# install depedencies
$ yarn

# generate unminified CSS
$ yarn build

# generate minified css
$ yarn build-min

File Structure

/src
    /dist
        main.css
        main.css.map
    /scss
        _buttons.scss
        _colorClasses.scss
        _colors.scss
        _commonAppStyles.scss
        _commonTransitionStyles.scss
        _forms.scss
        _global.mixins.scss
        _globalVariables.scss
        _gridStyles.scss
        _other.scss
        _typography.scss
        _typographyVariables.scss
        _vuetifyOverrides.scss
        main.scss

You have the option to import either the whole minified main.css or the main.scss if you want to get load the whole library. To include the main.scss, you can pull it into your .scss file like this:

@use '~@nuskin/ns-core-styles/src/main';

Please note that as of today, Jan 10, 2020 node-sass does not support '@use' and will fail. Instead you will need to add 'sass' and 'sass-loader' as depedencies.

Further documentation for core-styles can be found in Nu Skin's Storybook under Style Docs/Core Styles. There documentation exists for:

FAQs

Last updated on 08 Apr 2024

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