Truly theme developer docs Guides Reference (format 1)

CSS

assets/theme.css is rebuilt from what Truly accepts; anything else is left out with a warning in the check report
(the stylesheet still builds). Write normal CSS with classes.

Selectors

Class, type and * selectors, combinators >, +, ~ and descendant, and [data-part="…"] as the only attribute
selector. No ids and no :has(). Each rule applies inside your page and stops at slots, so button { … } never
styles Truly's components; a rule whose last part names a [data-part] reaches into its slot (see
Slots and hooks).

Pseudo-classes: hover, focus, focus-visible, focus-within, active, first-child, last-child, only-child, first-of-type, last-of-type, only-of-type, empty, root, link, visited, open, and not, is, where, nth-child, nth-last-child, nth-of-type, nth-last-of-type.

Pseudo-elements: before, after, marker, placeholder, first-line, first-letter, selection.

At-rules

@media, @supports, @container, @layer, @font-face, nested in any order; @font-face at the top level only, its src naming
.woff2 files of your theme. Font descriptors: font-family, src, font-weight, font-style, font-display, font-stretch, unicode-range.

Media and container features: width, min-width, max-width, height, min-height, max-height, aspect-ratio, min-aspect-ratio, max-aspect-ratio, orientation, resolution, min-resolution, max-resolution, hover, any-hover, pointer, any-pointer, prefers-color-scheme, prefers-reduced-motion, prefers-contrast, forced-colors, display-mode, inline-size, min-inline-size, max-inline-size, block-size, min-block-size, max-block-size.

Properties

align-content, align-items, align-self, all, animation-delay, appearance, aspect-ratio, backdrop-filter, background, background-attachment, background-blend-mode, background-clip, background-color, background-image, background-origin, background-position, background-repeat, background-size, block-size, border, border-block, border-block-end, border-block-start, border-bottom, border-bottom-color, border-bottom-left-radius, border-bottom-right-radius, border-bottom-style, border-bottom-width, border-collapse, border-color, border-image, border-image-source, border-inline, border-inline-end, border-inline-start, border-left, border-left-color, border-left-style, border-left-width, border-radius, border-right, border-right-color, border-right-style, border-right-width, border-spacing, border-style, border-top, border-top-color, border-top-left-radius, border-top-right-radius, border-top-style, border-top-width, border-width, bottom, box-shadow, box-sizing, caption-side, clear, color, column-count, column-gap, columns, container, container-name, container-type, content, cursor, display, empty-cells, filter, flex, flex-basis, flex-direction, flex-flow, flex-grow, flex-shrink, flex-wrap, float, font, font-family, font-feature-settings, font-kerning, font-size, font-stretch, font-style, font-variant, font-variant-numeric, font-weight, gap, grid, grid-area, grid-auto-columns, grid-auto-flow, grid-auto-rows, grid-column, grid-column-end, grid-column-start, grid-row, grid-row-end, grid-row-start, grid-template, grid-template-areas, grid-template-columns, grid-template-rows, height, hyphens, inline-size, inset, inset-block, inset-inline, isolation, justify-content, justify-items, justify-self, left, letter-spacing, line-height, list-style, list-style-image, list-style-position, list-style-type, margin, margin-block, margin-block-end, margin-block-start, margin-bottom, margin-inline, margin-inline-end, margin-inline-start, margin-left, margin-right, margin-top, mask, mask-image, max-block-size, max-height, max-inline-size, max-width, min-block-size, min-height, min-inline-size, min-width, mix-blend-mode, object-fit, object-position, opacity, order, outline, outline-color, outline-offset, outline-style, outline-width, overflow, overflow-wrap, overflow-x, overflow-y, padding, padding-block, padding-block-end, padding-block-start, padding-bottom, padding-inline, padding-inline-end, padding-inline-start, padding-left, padding-right, padding-top, place-content, place-items, place-self, position, quotes, right, row-gap, scroll-behavior, scroll-margin-top, scroll-padding-top, table-layout, text-align, text-decoration, text-decoration-color, text-decoration-line, text-decoration-style, text-decoration-thickness, text-indent, text-overflow, text-shadow, text-transform, text-underline-offset, text-wrap, top, transform, transform-origin, transition, transition-delay, transition-duration, transition-property, transition-timing-function, translate, rotate, scale, vertical-align, visibility, white-space, width, word-break, word-spacing, writing-mode, z-index, and custom properties (--name). A custom property cannot hold a URL.

Values

Functions: calc, min, max, clamp, var, rgb, rgba, hsl, hsla, hwb, lab, lch, oklab, oklch, color-mix, linear-gradient, radial-gradient, conic-gradient, repeating-linear-gradient, repeating-radial-gradient, repeating-conic-gradient, repeat, minmax, fit-content, translate, translatex, translatey, scale, scalex, scaley, rotate, skew, skewx, skewy, matrix, cubic-bezier, steps, blur, brightness, contrast, drop-shadow, grayscale, hue-rotate, invert, saturate, sepia, plus url() and image-set() naming an image of your theme (in
background, background-image, list-style, list-style-image, border-image, border-image-source, mask, mask-image).

Units: px, em, rem, ex, ch, lh, rlh, vh, vw, vmin, vmax, svh, lvh, dvh, svw, lvw, dvw, cqw, cqh, cqi, cqb, cqmin, cqmax, fr, deg, rad, grad, turn, s, ms, dpi, dpcm, dppx, x, n.

Limits

At most 512 KB and 32 levels of brackets; the report keeps the first 50 warnings.