THIS PROJECT USES pnpm!
Make sure you have properly installed pnpm.
- Clone repo
pnpm installpnpm dev
All you need to do is:
- install our library
- Set up pandacss with your framework
- Include our preset in the pandacss config
- Add you overwrites / extends to the pandacss config.
We ship a tailwind plugin AND a untitled.css file that provides all styles needed for
- typography
- colors
Alter the tailwind config:
import untitledPlugin from './src/lib/tailwind/plugin';
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{html,js,svelte,ts}'],
/* ... */
plugins: [untitledPlugin],
/* We need to disable the tailwind preflights as they overwrite panda styles */
corePlugins: {
preflight: false
}
};Then make sure your app.css looks like this:
@import './lib/untitled.css';
/* The order here matters!! The panda layers first, as we will only be doing overrides with tailwind. */
@layer reset, base, tokens, recipes, utilities;
@layer tailwind.base {
@tailwind base;
}
@layer tailwind.components {
@tailwind components;
}
@layer tailwind.utilities {
@tailwind utilities;
}
/* */By default, the design system sets the untld font (Inter) on the page body (html element). That way, Inter will be the default font used and doesn't have to be specified anymore.
We expose the following textStyles for untitled UI display properties:
untld_display_2xluntld_display_xluntld_display_lguntld_display_mduntld_display_smuntld_display_xs,
... And for untitled UI text properties:
untld_text_xluntld_text_lguntld_text_mduntld_text_smuntld_text_xs
Which can then be used as follows:
<script>
import { css } from 'styled-system/css';
</script>
<p class={css({ textStyle: 'untld_display_xl' })}>
This is a paragraph from Panda with the body text style.
</p>the font weight can be separately specified via the panda built in fontWeight property:
<div class={css({ fontWeight: 'bold' })} />We offer all shades from untitled UI as colors here.
Base colors:
untld_blackuntld_white
Primary colors:
untld_grayuntld_branduntld_erroruntld_warninguntld_success
Secondary colors:
untld_gray_blueuntld_gray_cooluntld_gray_modernuntld_gray_neutraluntld_gray_ironuntld_gray_trueuntld_gray_warmuntld_mossuntld_green_lightuntld_greenuntld_tealuntld_cyanuntld_blue_lightuntld_blueuntld_blue_darkuntld_indigountld_violetuntld_purpleuntld_fuchsiauntld_pinkuntld_roséuntld_orange_darkuntld_orangeuntld_yellow
These can then be used as follows:
<script>
import { css } from 'styled-system/css';
</script>
<p class={css({ backgroundColor: 'untld_brand.600' })}>
This is a paragraph from Panda with the body text style.
</p>