All Projects β†’ canonical-web-and-design β†’ vanilla-framework-react

canonical-web-and-design / vanilla-framework-react

Licence: other
An implementation of Vanilla Framework using React

Programming Languages

javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to vanilla-framework-react

Design System With 11ty
This is a design system documentation powered by eleventy
Stars: ✭ 18 (-5.26%)
Mutual labels:  pattern-library
Awesome Design Systems
πŸ’…πŸ» βš’ A collection of awesome design systems
Stars: ✭ 13,308 (+69942.11%)
Mutual labels:  pattern-library
design-systems
A list of famous design systems, design languages and guidelines
Stars: ✭ 403 (+2021.05%)
Mutual labels:  pattern-library
Design System Starter
πŸš€ The Australian Government Design System - Starter
Stars: ✭ 61 (+221.05%)
Mutual labels:  pattern-library
Django Pattern Library
UI pattern libraries for Django templates
Stars: ✭ 110 (+478.95%)
Mutual labels:  pattern-library
Backpack Ui
All the tools you need to build the Lonely Planet UI experience.
Stars: ✭ 216 (+1036.84%)
Mutual labels:  pattern-library
Uiengine
Workbench for UI-driven development
Stars: ✭ 349 (+1736.84%)
Mutual labels:  pattern-library
fractal-starter-kit
Starter kit for Fractal with SCSS, Webpack, XO, sass-lint and Gulp
Stars: ✭ 22 (+15.79%)
Mutual labels:  pattern-library
Patternlab Edition Node Webpack
The webpack wrapper around patternlab-node core, providing tasks to interact with the core library and move supporting frontend assets.
Stars: ✭ 122 (+542.11%)
Mutual labels:  pattern-library
Ugnis
Visual CSS generator for React
Stars: ✭ 249 (+1210.53%)
Mutual labels:  pattern-library
Patternfly Design
Use this repo to file all new feature or design change requests for the PatternFly project
Stars: ✭ 82 (+331.58%)
Mutual labels:  pattern-library
Nostyle
Design System
Stars: ✭ 101 (+431.58%)
Mutual labels:  pattern-library
Awesome Design Systems
A curated list of bookmarks, resources and articles about design systems focused on developers.
Stars: ✭ 222 (+1068.42%)
Mutual labels:  pattern-library
Axiom React
Axiom - Brandwatch design system and React pattern library
Stars: ✭ 41 (+115.79%)
Mutual labels:  pattern-library
core
The Pangolin.js core that drives everything.
Stars: ✭ 18 (-5.26%)
Mutual labels:  pattern-library
A11y Style Guide
Accessibility (A11Y) Style Guide
Stars: ✭ 493 (+2494.74%)
Mutual labels:  pattern-library
Bolt
The Bolt Design System provides robust Twig and Web Component-powered UI components, reusable visual styles, and powerful tooling to help developers, designers, and content authors build, maintain, and scale best of class digital experiences.
Stars: ✭ 186 (+878.95%)
Mutual labels:  pattern-library
design-vanilla-framework
Design components for Vanilla Framework.
Stars: ✭ 62 (+226.32%)
Mutual labels:  vanilla-framework
notification-service-js
🚦Notification Service based on Custom Elements
Stars: ✭ 16 (-15.79%)
Mutual labels:  pattern-library
Patternlockview
An easy-to-use, customizable and Material Design ready Pattern Lock view for Android
Stars: ✭ 2,653 (+13863.16%)
Mutual labels:  pattern-library

Archived

Ths project has been archived for the time being, as it's not currently being maintained or actively used.


Vanilla Framework (in React)

This is a simple implementation of Vanilla Framework using React.

Storybook | Vanilla Framework

Quick start

To get up and running with Vanilla Framework React quickly, add the create-react-app CLI tool to your machine. Then, run the following code:

create-react-app my-app
cd my-app/
yarn add vanilla-framework vanilla-framework-react node-sass-chokidar
export SASS_PATH=`pwd`/node_modules:${SASS_PATH}

Open package.json and add the following scripts:

"build-css": "node-sass-chokidar src/ -o public/",
"watch-css": "npm run build-css && node-sass-chokidar src/ -o public/ --watch --recursive",

Open public/index.html and add the line:

<link rel="stylesheet" href="styles.css" />

Create src/styles.scss with the following code:

// Optionally override some settings
$color-brand: #fb3b00;

// Import the theme
@import 'vanilla-framework/scss/build';

// Include the Sass you want
@include vanilla;

Remove the following line from src/index.js:

import './index.css';

Now open a terminal and run yarn watch-css and open another terminal and run yarn start.

In your src/App.js file you can now include Vanilla Framework React components by adding the code:

import React, { Component } from 'react';
import { Button } from 'vanilla-framework-react';

class App extends Component {
  render() {
    return (
      <div>
        <Button brand value="Custom VF React Button!" />
      </div>
    );
  }
}

export default App;

Including Vanilla in your React project

This component library requires Vanilla Framework to function. You can either hotlink the latest build directly into your markup, like so (replace x's with the version you want):

<link rel="stylesheet" href="https://assets.ubuntu.com/v1/vanilla-framework-version-x.x.x.min.css" />

Or you can add Vanilla Framework to your node_modules folder and save it into your project's dependencies using your favourite package manager. You should also ensure that your Sass builder is including modules from node_modules. For example:

yarn add vanilla-framework
export SASS_PATH=`pwd`/node_modules:${SASS_PATH}

Then reference it from your own Sass files, with optional settings:

// Optionally override some settings
$color-brand: #fb3b00;

// Import the theme
@import 'vanilla-framework/scss/build';

// Include the Sass you want
@include vanilla;

If you don't want the whole framework, you can just @include specific parts - e.g. @include vf-b-forms.

Local development

In the project directory, you can run:

./run

This will start up an interactive development & testing environment listing all components.

The page will reload if you make edits.
You will also see any lint errors in the console.

./run test

Launches the test runner in the interactive watch mode.

./run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].