
Product
Introducing Socket Fix for Safe, Automated Dependency Upgrades
Automatically fix and test dependency updates with socket fixβa new CLI tool that turns CVE alerts into safe, automated upgrades.
@wework/oui-scss
Advanced tools
npm install @wework/oui-scss --save-dev
var gulp = require('gulp');
sass = require('gulp-sass');
postcss = require('gulp-postcss');
autoprefixer = require('autoprefixer');
lost = require('lost');
gulp.task('sass:dev', function () {
var processors = [
autoprefixer(),
lost()
];
return gulp.src('app/assets/css/*.scss')
.pipe(sourcemaps.init())
.pipe(sass({
includePaths: ['app/assets', 'node_modules'],
outputStyle : 'compressed',
sourceComments: 'map',
}))
.pipe(postcss(processors))
.pipe(sourcemaps.write())
.pipe(gulp.dest('public/assets/css'));
});
To include all of Oui's styles in your project, import like so:
@import "oui-scss/src/base";
If you would like to use our default font, Proxima Nova
, include the following script tag in the head of your html:
<script src="//fast.fonts.net/jsapi/bc942a26-8ea5-4d85-b69e-a4afa56b5011.js"></script>
For our secondary font, Knockout
, include the following in the head of your html:
<link rel="stylesheet" href="//cloud.typography.com/6353954/695546/css/fonts.css" />
For the icons:
<link rel="stylesheet" href="//fontastic.s3.amazonaws.com/aagNC9rxuN29yoHxEKJed4/icons.css" />
(truncated, only showing one component in src, for the sake of simplicity)
βββ docs
β βββ styleguide
β β βββ styleguide.jade
β β βββ styleguide.jsx
β β βββ styleguide.scss
β βββ entry.js
β βββ index.html
βββ node_modules
βββ public
βββ src
β βββ components
β β βββ header
β β β βββ header.jade
β β β βββ header.jsx
β β β βββ header.scss
β β βββ index.js
docs/
- Imports all components necessary for the docs into Styleguide.jsx. entry.js
is our entry point for webpack. When npm run build
is executed, this folder is compiled to serve up our documentation in public
in the browser at localhost:8080
.public/
- Generated by webpack. Compiled and minified docs for reference.src/components
- Where everything we need to build beautiful websites lives.npm run build
to both delete the public
folder and rebuild it.
npm run build:clean
to remove public
foldernpm run build:all
to build public
foldernpm start
to view the documentation on localhost:8080
.
When adding a new stylesheet, always include the PostCSS Bem Linter definition as the first line in your file. ie) /** @define oui-header */
, in order to properly lint your styles.
FIX all errors/warnings you may see in your console before asking for a +1.
source <gemfury> do
gem 'oui'
end
in Gemfile //= require oui/jstest
in application.js@import "oui/colors";
in application.scssFAQs
WeWork UI + Styles
The npm package @wework/oui-scss receives a total of 0 weekly downloads. As such, @wework/oui-scss popularity was classified as not popular.
We found that @wework/oui-scss demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.Β It has 13 open source maintainers collaborating on the project.
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.
Product
Automatically fix and test dependency updates with socket fixβa new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
Weβre excited to announce a powerful new capability in Socket: historical data and enhanced analytics.