npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@salaros/fomantic-ui-sass

v2.7.80008

Published

The sass version of semantic ui. It is fully customizable with isolated variable names.

Downloads

3

Readme

Fomantic Logo

Fomantic-ui-sass

npm downloads npm version

A community fork of the popular Semantic-UI framework.

The sass version of fomantic ui. It is fully customizable with isolated variable names. Each component variable file is accompanied by a json file of the same name associating the name of the variable in the LESS version with its new name of the SASS version.

All variables of the original project are customizable. You can take a look at the source code on github.

Don't forget to manually copy the theme folder to the assets folder of your site. It's up to you to manage manually so that the icons fonts are downloaded by the browser.

NOTE

The package only has the default theme.

Installation and Usage

npm i -D fomantic-ui-sass

SCSS Usage

Copy the custom directory into your project. It contains your custom theme templates which you can customize. In the below example, the directory is copied and renamed fomantic-custom-theme.

It is also helpful to copy the default theme assets (fonts and images) to your project. In this example, the assets have been moved into fomantic-custom-theme/assets, but you can put them anywhere and set the path variables (keep reading).

It's helpful to create an SASS file as an entrypoint. In this file, you can set up some directory variables, import your custom theme, and pull in the variables and styles in the correct order.

For example, you can have a file named fomantic.scss:

// The following path vars are for relative `url()` statements in the SCSS.
// They will be relative to the compiled entrypoint CSS file, which in our
// case is /fomantic.scss.
$theme-folder: 'fomantic-scss-custom' !default;
$image-path: "#{$theme-folder}/assets/images" !default;
$font-path: "#{$theme-folder}/assets/fonts" !default;

// Generally, we import our custom theme first, then apply any unset variables
// from the default theme over them (variables in the default theme are defined
// with CSS `!default` so they are only used if they aren't already set.
//
// Sometimes, though, we want to use a variable from the default theme in our
// custom rules, in which case we need to either set it or pull in the file here
// before we can use them in our custom theme.
@import '../../node_modules/fomantic-ui-sass/src/utils/all';
@import '../../node_modules/fomantic-ui-sass/src/themes/default/globals/fonts/all';
@import '../../node_modules/fomantic-ui-sass/src/themes/default/globals/colors/all';

// Then, we load up the whole shebang...
@import 'fomantic-custom-theme';                                 // custom theme variables
@import '../../node_modules/fomantic-ui-sass/src/variables';     // default theme variables
@import '../../node_modules/fomantic-ui-sass/src/semantic.scss'; // Semantic-UI SCSS

Customization and choice of components and their variants

Button

$use-button: true !default;
//Types
$use-button-type-animated: true !default;
$use-button-type-labeled: true !default;
$use-button-type-basic: true !default;
$use-button-type-inverted: true !default;
$use-button-type-tertiary: true !default;
//Variations
$use-button-variation-social: 'facebook', 'twitter', 'google', 'google plus',
  'linkedin', 'youtube', 'instagram', 'pinterest', 'vk', 'whatsapp', 'telegram' !default;
$use-button-variation-colors: 'red', 'orange', 'yellow', 'olive', 'green',
  'teal', 'blue', 'violet', 'purple', 'pink', 'brown', 'grey', 'black' !default;
$use-button-variation-consequences: 'positive', 'negative' !default;

Header

$use-header: true !default;
$use-header-variation-colors: 'red', 'orange', 'yellow', 'olive', 'green',
  'teal', 'blue', 'violet', 'purple', 'pink', 'brown', 'grey', 'black' !default;

Input

$use-input: true !default;
//Variations
$use-input-variation-icon: true !default;
$use-input-variation-labeled: true !default;
$use-input-variation-action: true !default;
$use-input-variation-transparent: true !default;
$use-input-variation-inverted: true !default;

Label

$use-label: true !default;
//Types
$use-label-type-image: true !default;
$use-label-type-pointing: true !default;
$use-label-type-corner: true !default;
$use-label-type-tag: true !default;
$use-label-type-ribbon: true !default;
$use-label-type-horizontal: true !default;
$use-label-type-attached: true !default;
$use-label-type-floating: true !default;
//Variations
$use-label-variation-circular: true !default;
$use-label-variation-basic: true !default;
$use-label-variation-inverted: true !default;
$use-label-variation-basic-pointing: true !default;
$use-label-variation-basic-tag: true !default;
$use-label-variation-colors: $colors-variations-names !default;

List

$use-list: true !default;
//Types
$use-list-type-bulleted: true !default;
$use-list-type-link: true !default;
$use-list-type-ordered: true !default;
//Variations
$use-list-variation-horizontal: true !default;
$use-list-variation-inverted: true !default;
$use-list-variation-selection: true !default;
$use-list-variation-divided: true !default;
$use-list-variation-celled: true !default;
$use-list-variation-relaxed: true !default;

Loader

//-------------- Loader ------------------*/
$use-loader: true !default;
//Variations
$use-loader-variation-inverted: true !default;
$use-loader-variation-colors: 'red', 'orange', 'yellow', 'olive', 'green',
  'teal', 'blue', 'violet', 'purple', 'pink', 'brown', 'grey', 'black' !default;

Reveal

//-------------- Reveal ------------------*/
$use-reveal: true !default;
//Types
$use-reveal-type-fade: true !default;
$use-reveal-type-slide: true !default;
$use-reveal-type-move: true !default;
$use-reveal-type-rotate: true !default;

Segment

//-------------- Segment ------------------*/
$use-segment: true !default;
//Types
$use-segment-type-placeholder: true !default;
$use-segment-type-piled: true !default;
$use-segment-type-stacked: true !default;
//Variations
$use-segment-variation-inverted: true !default;
$use-segment-variation-attached: true !default;
$use-segment-variation-colors: 'red', 'orange', 'yellow', 'olive', 'green',
  'teal', 'blue', 'violet', 'purple', 'pink', 'brown', 'grey', 'black' !default;

Step

//-------------- Step ------------------*/
$use-step: true !default;
//Types
$use-step-type-ordered: true !default;
$use-step-type-vertical: true !default;
//Variations
$use-step-variation-inverted: true !default;
$use-step-variation-attached: true !default;

Breadcrumb

//-------------- Breadcrumb ------------------*/
$use-breadcrumb: true !default;
//Variations
$use-breadcrumb-variation-inverted: true !default;

Menu

//-------------- Menu ------------------*/
$use-menu: true !default;
//Types
$use-menu-type-secondary: true !default;
$use-menu-type-pointing: true !default;
$use-menu-type-tabular: true !default;
$use-menu-type-text: true !default;
$use-menu-type-vertical: true !default;
$use-menu-type-pagination: true !default;
//Variations
$use-menu-variation-inverted: true !default;
$use-menu-variation-attached: true !default;
$use-menu-variation-colors: 'red', 'orange', 'yellow', 'olive', 'green', 'teal',
  'blue', 'violet', 'purple', 'pink', 'brown', 'grey', 'black' !default;

Message

//-------------- Message ------------------*/
$use-message: true !default;
//Variations
$use-message-variation-colors: 'red', 'orange', 'yellow', 'olive', 'green',
  'teal', 'blue', 'violet', 'purple', 'pink', 'brown', 'grey', 'black' !default;
$use-message-variation-consequences: 'positive', 'negative' !default;

Table

//-------------- Table ------------------*/
$use-table: true !default;
//Types
$use-table-type-definition: true !default;
$use-table-type-structured: true !default;
//Variations
$use-table-variation-basic: true !default;
$use-table-variation-celled: true !default;
$use-table-variation-padded: true !default;
$use-table-variation-compact: true !default;
$use-table-variation-inverted: true !default;
$use-table-variation-sortable: true !default;
$use-table-variation-colors: 'red', 'orange', 'yellow', 'olive', 'green',
  'teal', 'blue', 'violet', 'purple', 'pink', 'brown', 'grey', 'black' !default;

Card

//-------------- Card ------------------*/
$use-card: true !default;
//Variations
$use-card-variation-inverted: true !default;
$use-card-variation-colors: 'red', 'orange', 'yellow', 'olive', 'green', 'teal',
  'blue', 'violet', 'purple', 'pink', 'brown', 'grey', 'black' !default;

Comment

//-------------- Comment ------------------*/
$use-comment: true !default;
//Variations
$use-comment-variation-inverted: true !default;

Feed

//-------------- Feed ------------------*/
$use-feed: true !default;
//Variations
$use-feed-variation-inverted: true !default;

Item

//-------------- Item ------------------*/
$use-item: true !default;
//Variations
$use-item-variation-inverted: true !default;

Statistic

//-------------- Statistic ------------------*/
$use-statistic: true !default;
//Variations
$use-statistic-variation-inverted: true !default;
$use-statistic-variation-colors: 'red', 'orange', 'yellow', 'olive', 'green',
  'teal', 'blue', 'violet', 'purple', 'pink', 'brown', 'grey', 'black' !default;

Checkbox

//-------------- Checkbox ------------------*/
$use-checkbox: true !default;
//Types
$use-checkbox-type-slider: true !default;
$use-checkbox-type-toggle: true !default;
//Variations
$use-checkbox-variation-fitted: true !default;
$use-checkbox-variation-inverted: true !default;
$use-checkbox-variation-size: 'mini', 'tiny', 'small', 'medium', 'large', 'big',
  'huge', 'massive' !default;

Dimmer

//-------------- Dimmer ------------------*/
$use-dimmer: true !default;
//Variations
$use-dimmer-variation-inverted: true !default;
$use-dimmer-variation-blurring: true !default;
$use-dimmer-variation-partially: true !default;
$use-dimmer-variation-shades: true !default;

Dropdown

//-------------- Dropdown ------------------*/
$use-dropdown: true !default;
//Types
$use-dropdown-type-selection: true !default;
$use-dropdown-type-multiple: true !default;
$use-dropdown-type-search: true !default;
$use-dropdown-type-clearable: true !default;
$use-dropdown-type-inline: true !default;
$use-dropdown-type-simple: true !default;
$use-dropdown-type-pointing: true !default;
//Variations
$use-dropdown-variation-inverted: true !default;
$use-dropdown-variation-columnar: true !default;

Modal

//-------------- Modal ------------------*/
$use-modal: true !default;
//Types
$use-modal-type-inverted: true !default;
$use-modal-type-basic: true !default;
$use-modal-type-fullscreen: true !default;

Popup

//-------------- Popup ------------------*/
$use-popup: true !default;
//Variations
$use-popup-variation-inverted: true !default;

Progress

//-------------- Progress ------------------*/
$use-progress: true !default;
//Variations
$use-progress-variation-inverted: true !default;
$use-progress-variation-attached: true !default;
$use-progress-variation-colors: 'red', 'orange', 'yellow', 'olive', 'green',
  'teal', 'blue', 'violet', 'purple', 'pink', 'brown', 'grey', 'black' !default;

Rating

//-------------- Rating ------------------*/
$use-rating: true !default;
//Variations
$use-rating-variation-colors: 'red', 'orange', 'yellow', 'olive', 'green',
  'teal', 'blue', 'violet', 'purple', 'pink', 'brown', 'grey', 'black' !default;

Slider

//-------------- Slider ------------------*/
$use-slider: true !default;
//Variations
$use-slider-variation-inverted: true !default;
$use-slider-variation-vertical: true !default;
$use-slider-variation-reversed: true !default;
$use-slider-variation-colors: 'red', 'orange', 'yellow', 'olive', 'green',
  'teal', 'blue', 'violet', 'purple', 'pink', 'brown', 'grey', 'black' !default;

Toast

//-------------- Toast ------------------*/
$use-toast: true !default;
//Variations
$use-toast-variation-inverted: true !default;
$use-toast-variation-colors: 'red', 'orange', 'yellow', 'olive', 'green',
  'teal', 'blue', 'violet', 'purple', 'pink', 'brown', 'grey', 'black' !default;