https://github.com/webrecorder/hickory
Webrecorder's Design System (WIP)
https://github.com/webrecorder/hickory
Last synced: 8 days ago
JSON representation
Webrecorder's Design System (WIP)
- Host: GitHub
- URL: https://github.com/webrecorder/hickory
- Owner: webrecorder
- Created: 2024-08-22T16:25:42.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-03-12T21:23:19.000Z (about 2 months ago)
- Last Synced: 2025-04-14T14:25:15.254Z (14 days ago)
- Language: JavaScript
- Size: 181 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Hickory
Webrecorder's Design System (WIP)
Hickory currently contains just primitive design tokens and custom icons, but will eventually also contain shared UI primitives and components.
## Tokens
Tokens live within the `tokens` folder. Currently we've just got primitive color tokens, but as we start to bring components and other primitives into this repo we'll want to expand that to semantic tokens. They're written using the [Design Tokens Community Group spec](https://tr.designtokens.org/format/), and are compiled using [Style Dictionary](https://styledictionary.com/) to a Tailwind theme. In the future we may also want to compile these to CSS variables, which Style Dictionary makes very easy.
### Usage - Tailwind 4
Inside your Tailwind css file, add the following:
```diff lang="css"
@import "tailwindcss";
+@import "@webrecorder/hickory/tokens/tailwind.css";
```### Usage - Tailwind 3
Inside your Tailwind config file, set the following:
```diff lang="js"
+import theme from "@webrecorder/hickory/tokens/tailwind";/** @type {import('tailwindcss').Config} */
export default {
// ...
+ theme,
};
```## Icons
Icons live in the `icons` folder, and are optimized and bundled using [Iconify Utils](https://iconify.design/docs/libraries/utils/) into JSON and SVG.
There are currently two icon sets included: `icons`, for product icons; and `brand`, for logos and lockups.