Code Monkey home page Code Monkey logo

salt-ds's Introduction

Salt

@salt-ds/core @salt-ds/lab @salt-ds/theme @salt-ds/icons

Salt provides you with a suite of UI components and a flexible theming system. With no customisation, the default theme offers an attractive and modern look-and-feel, with both light and dark variants and support for a range of UI densities. We have included a theming system which allows you to easily create theme variations, or in fact substitute alternate themes.

Salt has been developed with the following design goals:

  • Providing a comprehensive set of commonly-used UI controls.
  • Complying with WCAG 2.1 accessibility guidelines.
  • To be lightweight and performant.
  • Offering flexible styling and theming support.
  • Minimizing dependencies on third-party libraries.

Installation

There are four packages you can install:

  • @salt-ds/core is required, this contains stable components and receives new features and patch updates when needed.
  • @salt-ds/lab is where we introduce new components which are under initial development until they are stable and moved over to core. This is typically an unstable environment and may have major breaking changes.
  • @salt-ds/theme is required, this contains the Salt .css files required for any application you develop with Salt.
  • @salt-ds/icons contains SVG-based icons you can use in your application.

Depending on the package manager you use, edit and run one of the following commands to install the packages you need:

npm install @salt-ds/core @salt-ds/theme @salt-ds/lab @salt-ds/icons

Or

yarn add @salt-ds/core @salt-ds/theme @salt-ds/lab @salt-ds/icons

You will then need to import the .css files into your application, along with any components that you plan to use.

Here’s a quick example of a Call-to-Action (CTA) button for your reference:

import { Button, SaltProvider } from "@salt-ds/core";

import "@salt-ds/theme/index.css";

function App() {
  return (
    <SaltProvider>
      <Button variant="cta">CTA Button</Button>
    </SaltProvider>
  );
}

Accessibility

Salt is a high-quality, WCAG 2.1 compliant solution for building great, accessible experiences for your users.

Screen reader support & compatibility

We support specific combinations of assistive technologies (ATs) and browsers, outlined in the table below.

Operating System Web browser Screen reader
Windows Firefox NVDA
Chrome JAWS
macOS Safari VoiceOver

Thanks

Chromatic

Thanks to Chromatic for providing the visual testing platform that helps us review UI changes and catch visual regressions.

salt-ds's People

Contributors

alexmotoc avatar alycrys avatar ararus avatar cheemcheem avatar daviereid avatar dependabot[bot] avatar el-dav avatar eleanorhaproff avatar feliciackh avatar fercas123 avatar github-actions[bot] avatar heswell avatar immanuelbaskaran avatar james-nash avatar joanammoreira avatar joshwooding avatar leolyw12138 avatar libertymayc avatar lilyvc avatar lukeac123 avatar maleeha13 avatar mark-tate avatar mikearildbrown avatar navkaur76 avatar origami-z avatar pseys avatar renovate[bot] avatar shinytoyrobots avatar sion-docs avatar zarkopernar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.