The LUCI Design System includes a foundation of assets and resources to help teams design and build cohesive NetApp websites and digital products.
The range of resources available for designers and developers include:
Follow these guidelines to begin using the Design System.
The LUCI Visual Language is the foundation for the overall look and feel of NetApp web sites and digital products. It includes specifications on color, iconography, typography, and spacing.
Familiarize yourself with these critical elements as a first step.
The sticker sheet contains design elements such as values for the visual language, reference screen designs, icons, symbols, and several components.
The sticker sheet contains design elements such as values for the visual language, reference screen designs, icons, symbols, and several components.
The zip file contains SVG and PNG formats of the LUCI icon set.
We recommend the following steps to start developing with LUCI:
The LUCI zip file contains the compiled CSS and SVG sprite for the icons. Once downloaded, you can link to the CSS from your index.html
page and use SVG icons in your components.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>LUCI Demo</title>
<link rel="stylesheet" href="/styles/luci.css">
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700">
<!-- Include this script to use SVG Sprite in IE -->
<script src="/your/path/to/svg4everybody.min.js" charset="utf-8"></script>
<script type="text/javascript">
svg4everybody();
</script>
</head>
<body>
<h1>Welcome to LUCI</h1>
</body>
</html>
The following steps will set you up to work with LUCI in a local Node.js development environment.
We will assume you have knowledge of the following:
Initialize your project
a. Once you've dowloaded and installed the prerequisites for your node environment, create a folder for your project.
$ mkdir luci-demo
$ cd luci-demo
b. Inside your luci-demo
, folder create a package.json file with defaults set.
$ npm init --yes
Figure: Example package.json file
Install the following npm packages as dependencies
a. LUCI
$ npm install --save @netapp/luci
b. Browsersync will allow you to run a local server and see your changes in your favorite web browser.
$ npm install --save-dev browsersync
Figure: Updated package.json file
Add LUCI to your project by linking to the compiled LUCI stylesheet in your index.html
file.
Figure: Index file with link to LUCI stylesheet
Copy and paste the Basic Form code example into your index.html
file.
Figure: Index file with LUCI form
Run the following command to start a local web server:
$ browser-sync start --server
Figure: LUCI web page with basic form
In order to take advantage of some of the LUCI Sass features, such as tokens and mixins, you will need to set up your project to use Sass. Because Sass is a preprocessor for CSS, you will need to install additional tools to compile Sass to CSS.
We recommend the following:
We will assume you completed the steps to set up LUCI with npm.
npm install Gulp and gulp-sass.
$ npm install --save-dev gulp gulp-sass
Figure: Updated package.json
Create a gulpfile.js
file in the root folder of your project and copy and paste the following code:
const gulp = require('gulp');
const sass = require('gulp-sass');
gulp.task('sass', function() {
return gulp.src('./styles/*.scss')
.pipe(sass())
.pipe(gulp.dest('./dist/css'));
});
Create a scss stylesheet.
a. In the luci-demo
project, create a new styles folder.
b. In the styles folder, create a master.scss
file, for example.
c. Import the LUCI token and typography partials at the top of your master.scss
file.
Figure: Imported LUCI partials
Reset the body text to match LUCI styles.
Figure: Font reset example
Add an h1
to your stylesheet and use the LUCI mixin to style the h1
.
Figure: Heading mixin
Update your index.html file to the following:
Figure: Updated index.html
Compile your stylesheet and view your changes in the browser.
$ gulp sass
$ browser-sync start --server
Figure: Hello LUCI page
Review How to design with tokens for additional information about how to use tokens with existing HTML.
Want to use LUCI on your existing or new product? Fantastic!
The first step is to Contact the LUCI Team to let them know you’d like to start adopting the System and prepare any initial questions you have. Someone from the team will be in touch (within 2-3 business days) to discuss your needs.
Some initial questions to think about in anticipation of the discussion include:
Additionally, have your design and/or development teams review this website and prepare their own questions about the LUCI system.
It’s also important to know that LUCI will not contain every component asset or function that your website or digital product may need. That’s okay. LUCI is intended to serve as a front-end foundation/baseline for websites and digital products to use and extend as needed.
That said, if there is a component or asset that your product needs and other products that use LUCI would benefit from, it’s a candidate to be added into the system in a subsequent release. You can see what’s planned for LUCI at any time or Contact the LUCI Team to make a request.