@echennau/remi
v1.1.9
Published
Remi Design System
Maintainers
Readme
Remi Design System
Design system created for my own personal projects, based off my favorite color, orange!
Remi consists of two tiers: design tokens, and stylesheets built on top of them.
Installation
Install via npm:
npm install @echennau/remiImport into your project
These imports require a bundler (Vite, webpack, etc.) or TailwindCSS v4. Without one, reference the files directly, such as ./node_modules/@echennau/remi/dist/styles/index.css.
Stylesheet
Includes all design tokens, base theming, and typography styles.
@import "@echennau/remi";Or, import individual stylesheets:
/* CSS variables, automatically themed */
@import "@echennau/remi/styles/theme.css";
/* Tag-level typography styles */
@import "@echennau/remi/styles/typography.css";Tailwind config
If you want Tailwind utility classes and the @theme configuration, import it separately:
@import "@echennau/remi/tailwind.css";Tokens only
Available in CSS, JavaScript ES6, and JSON.
@import "@echennau/remi/tokens/tokens.css";import tokens from "@echennau/remi/tokens/tokens.js";import tokens from "@echennau/remi/tokens/tokens.json";Fonts
Remi uses three variable fonts:
- Space Grotesk - headings and body text
- Montserrat - display and utility
- Source Code Pro - monospace
Font Preloading
To optimize font loading, add the following to your HTML <head>. The exact paths will vary depending on your bundler or framework.
<link
rel="preload"
href="/fonts/SpaceGrotesk-VariableFont_wght.ttf"
as="font"
type="font/ttf"
crossorigin
/>
<link
rel="preload"
href="/fonts/Montserrat-VariableFont_wght.ttf"
as="font"
type="font/ttf"
crossorigin
/>
<link
rel="preload"
href="/fonts/SourceCodePro-VariableFont_wght.ttf"
as="font"
type="font/ttf"
crossorigin
/>Building locally
npm run buildThis runs Style Dictionary to compile tokens into dist/tokens/, then copies the stylesheets to dist/styles/, fonts to dist/fonts/, and tailwind.css to dist/tailwind.css.
All files are exported from dist as specified in package.json.
Publishing to npm
The publish workflow triggers on any tag matching v*. To publish a new version:
1 - Bump the version in package.json
2 - Commit the change
3 - Push a matching git tag:
git tag vX.Y.Z
git push origin vX.Y.ZThe tag push triggers the workflow, which publishes whatever version is in package.json at that commit.
Authors
Ethan Chennault - [email protected]
