--- // The "CSS" section of a component page, built like the Bootstrap docs: the // custom-property block and the Sass defaults, both cut from the sources by // lib/scss-docs.ts. Either part may be missing. import CodeSnippet from '@components/CodeSnippet.astro' import { cssSection } from '@lib/scss-docs' import { site } from '@shared/lib/site' interface Props { /** the custom-property family after `--`, e.g. `badge` for the `badge-css-vars` marker */ cssVars?: string | undefined /** the `-variables` marker in `_variables.scss`; defaults to `cssVars` */ sassVars?: string | undefined } const { cssVars, sassVars } = Astro.props const { css, sass } = await cssSection(cssVars, sassVars) const fileLink = (path: string) => `${site.githubUrl}/blob/dev/${path}` --- { (css || sass) && (

CSS

{css && (

Variables

The component uses local CSS variables {css.selector && ( {' '} on {css.selector} )}{' '} for real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too. Source:{' '} {css.path} .

)} {sass && (

Sass variables

Override these variables before importing Tabler to change the defaults. Source:{' '} {sass.path} .

)}
) }