mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-01 11:55:51 -05:00
Co-authored-by: Anthony <anthony@infraly.co> Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
24 lines
1.0 KiB
CSS
24 lines
1.0 KiB
CSS
/*
|
|
* Extension entry point. Import it after Tailwind built with the extension's own prefix,
|
|
* the one declared as `ui.prefix` in extension.json (`hw` here):
|
|
*
|
|
* @import 'tailwindcss/theme.css' layer(theme) prefix(hw);
|
|
* @import 'tailwindcss/utilities.css' layer(utilities) prefix(hw);
|
|
* @import '@pterodactyl/sdk/theme.css';
|
|
*
|
|
* The panel itself imports theme-tokens.css directly. The block below is for prefixed
|
|
* builds only: it points the theme variables a panel theme may override at the panel's
|
|
* live values instead of Tailwind defaults copied under `--hw-*`, so `hw:p-4` follows the
|
|
* panel's density and `hw:font-sans` its typeface. `inline` keeps the references out of
|
|
* `:root`; an unprefixed build would declare `--spacing: var(--spacing)` there and break the
|
|
* panel, which is why `p:extension:doctor` and the installer reject unprefixed builds.
|
|
*/
|
|
@import './theme-tokens.css';
|
|
|
|
@theme inline {
|
|
--spacing: var(--spacing);
|
|
--font-sans: var(--font-sans);
|
|
--font-header: var(--font-header);
|
|
--font-mono: var(--font-mono);
|
|
}
|