Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ferui/design

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ferui/design

CSS framework for FerUI Project

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Installing Ferui Design

  1. Install Ferui Design package through npm:

    npm install @ferui/design
    
  2. (Optional) Install Ferui Icons package through npm:

    npm install @ferui/icons
    
    • Don't forget to add the polyfill for Custom Elements if not already done:
    npm install @webcomponents/custom-elements
    

You can either add the compiled css files or the precompiled scss files directly to your project.

Importing compiled CSS files
  1. Include the ferui-design.min.css and ferui-icons.min.css files in your HTML file:

    <link rel="stylesheet" href="path/to/node_modules/@ferui/design/css/ferui-design.min.css">
    <link rel="stylesheet" href="path/to/node_modules/@ferui/icons/ferui-icons.min.css">
    
  2. Write your HTML with the Ferui Design CSS class names and markup.

Importing precompiled Sass files
  1. First, you can create your own _custom.scss and use it to override the built-in custom variables. Then, use your main Sass file to import your custom variables, followed by ferui-design:
...
@import "custom";
// This will import everything from FerUI design.
@import '@ferui/design/scss/ferui-design';
...

// This will load all the style for icons from FerUI Icons.
@import '@ferui/iconss/ferui-icons';
  • Note : You can load each scss files that you want from @ferui/design/ to load only the components that you need.
  1. For Bootstrap to compile, make sure you install and use the required loaders: sass-loader, postcss-loader with Autoprefixer. With minimal setup, your webpack config should include this rule or similar:
...
{
  test: /\.scss$/,
  use: [{
    loader: 'style-loader', // inject CSS to page
  }, {
    loader: 'css-loader', // translates CSS into CommonJS modules
  }, {
    loader: 'postcss-loader', // Run postcss actions
    options: {
      plugins: function () { // postcss plugins, can be exported to postcss.config.js
        return [
          require('autoprefixer')
        ];
      }
    }
  }, {
    loader: 'sass-loader' // compiles Sass to CSS
  }]
},
...
  1. Write your HTML with the Ferui Design CSS class names and markup.

Enable ferui-icons

Include the ferui-icons.min.js in your HTML file (don't forget the custom-elements polyfill) :

```
<script src="path/to/node_modules/@webcomponents/custom-elements/custom-elements.min.js"></script>
<script src="path/to/node_modules/@ferui/icons/ferui-icons.min.js"></script>
```

Keywords

FAQs

Package last updated on 07 May 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc