Skip to content

etchteam/diamond-ui

Folders and files

NameName
Last commit message
Last commit date
Sep 27, 2024
Dec 22, 2023
Oct 16, 2024
Feb 8, 2024
Oct 11, 2024
Oct 11, 2024
May 31, 2024
May 31, 2024
Jul 24, 2024
Oct 11, 2024
Mar 20, 2024
Dec 22, 2023
Oct 11, 2024
Jul 18, 2024
Dec 22, 2023
Oct 16, 2024
Jan 31, 2024
Dec 22, 2023
Oct 11, 2024
Dec 22, 2023
Dec 22, 2023
Feb 11, 2025
Feb 11, 2025
Jan 15, 2024
Jan 23, 2024
Feb 8, 2024
Feb 2, 2024
Mar 20, 2024

Repository files navigation

Diamond UI

Diamond UI is a collection of design tokens, CSS, web components and CSS web components that can be used to scaffold out web projects.

The components are built using the methodology from the Diamond UI docs. They are extremely light weight, using very little JavaScript or external dependencies. The components and CSS should be installable in any project or framework.

Install

Install the package from npm.

npm i @etchteam/diamond-ui --save

Include the base CSS, either in JS or SCSS/CSS or HTML

@import '~@etchteam/diamond-ui/diamond-ui.css';

Components can be imported by importing the file, which will also give type completion.

import '@etchteam/diamond-ui/composition/Grid/Grid';

And then used in HTML (or React, Vue, Angular, etc)

<diamond-grid>
  <diamond-grid-item>
    Grid content
  </diamond-grid-item>
</diamond-grid>

Configure

Diamond comes with smart defaults for tokens, but these can all be overwritten by creating your own set of CSS tokens applied to :root. All the tokens are listed in the token docs

Diamond supports custom theming, but in the interests of needing to override the least amount of base config, no production-ready themes are available out of the box. Full docs on creating themes which can be applied to components are available in the theme docs.