4.3.0 • Published 7 months ago

@treasure-dev/tailwind-config v4.3.0

Weekly downloads
-
License
-
Repository
github
Last release
7 months ago

Treasure Tailwind Config

Reusable Tailwind CSS configuration preset for the Treasure ecosystem. This allows projects to build with colors, fonts and other common customizations that follow the Treasure design system.

Installation

pnpm add -D @treasure-dev/tailwind-config

In tailwind.config.js, add the config as a preset:

presets: [require('@treasure-dev/tailwind-config')],

Fonts

If you also wish to use the Treasure design system fonts, import them in the root of your app:

General

import "@treasure-dev/tailwind-config/fonts.css";

Remix

import fontStylesheet from "@treasure-dev/tailwind-config/fonts.css";
import stylesheet from "~/tailwind.css";

export const links: LinksFunction = () => [
  { rel: "stylesheet", href: fontStylesheet },
  { rel: "stylesheet", href: stylesheet },
];

Now you can use the font via Tailwind using (font-sans and font-mono) or from a stylesheet:

body {
  font-family: "Whyte", sans-serif;
}
4.1.0

7 months ago

4.0.0

7 months ago

4.3.0

7 months ago

4.2.0

7 months ago

3.0.2

10 months ago

3.0.1

11 months ago

3.0.0

11 months ago

2.0.0

11 months ago