Skip to content

Reference

phil/ux-css

Files

FileWhat it holds
css/phil-ux.cssThe entry: the layer order and an import per file
css/tokens/palette.cssThe OKLCH palette, layer phil.palette
css/tokens/colors.cssThe colour roles and data-theme, layer phil.colors
css/tokens/dimensions.cssThe scales, fonts, focus and motion, layer phil.dimensions
css/layers/base.cssThe classless base: typography, forms, buttons, tables, dialogs, disclosures, navigation, gauges, popovers; layer phil.base
css/layers/layout.cssThe layout classes, layer phil.layout
css/layers/components.cssThe components, the highlighted code and the print fallback of UJO (Universal JSON Output), then the tones and the sizes, layer phil.components
css/layers/utilities.cssThe utilities, layer phil.utilities
dist/phil-ux.cssEverything as one file, written by bin/build.php
dist/tokens.jsonThe tokens in the format of the Design Tokens Community Group, written by bin/build.php
bin/build.phpWrites dist/phil-ux.css and dist/tokens.json from css/
package.jsonThe npm package @phil/ux-css, its style dist/phil-ux.css, and tokens.json

Classes

FamilyClasses
TonesisPrimary isNeutral isDanger isSuccess isWarning isInfo
SizesisSmall isLarge
ButtonsisButton isSecondary isGhost isOutline isLoading hasIcon isIconOnly isButtonGroup
StatusisBadge isAlert isLoud isSpinner isSkeleton
SurfacesisCard isCardMedia isCardBody isCardTitle isCardLink isEmptyState isSheet isStart isTop isBottom
ControlsisSwitch isTabs isDropdown isDropdownMenu isTooltip hasTooltip isAccordion
PathsisBreadcrumb isPagination isStepper isDone
ContentisAvatar isSeparator isVertical isCarousel isActivityCalendar isStriped hasHover isScrollable isQrCode isQrCodeCaption
FormsisField isHorizontal isResponsive isFieldSet isToggle isToggleInput isToggleGroup isRadioGroup isLoginForm isSignupForm
Lists and boxesisItem isItemGroup isScrollArea isAspectRatio isCollapsible isKbdGroup
ChartsisChart isChartImage isChartSeries isChartBar isChartLine isChartLegend isChartTable hasChartJs isChartCanvas
DisplayisEyebrow isHeadline isReveal isRevealToggle isLogo isImage hasLayoutFixed hasLayoutFullWidth hasRatio hasRatio16x9 hasRatio4x3 hasRatio3x2 hasRatio1x1 hasRatio21x9 hasRatio3x4 hasRatio2x3 hasRatio9x16 hasFitCover hasFitContain hasPositionCenter hasPositionTop hasPositionBottom hasPositionLeft hasPositionRight isCredit isLicense isCreation isGallery isLightbox isLightboxTrigger isLightboxDialog isLightboxClose isProse isReaction isReactionPicker isReactionPickerPanel
LayoutisStack isCluster isGrid isCenter isNarrow isSplit isFullHeight isCover isCoverBody isBleed hasEntrance
UtilitiesisVisuallyHidden isSkipLink isMuted isGrow

Types

TypeKindRole
Phil\UxCss\Color\Oklchfinal readonly classAn OKLCH colour: read, converted, its gamut, its luminance, a contrast ratio
Phil\UxCss\Token\TokenSheetfinal readonly classThe custom properties of stylesheets, resolved in a scheme
Phil\UxCss\Token\Tonefinal readonly classA tone of the palette: hue, number, colour
Phil\UxCss\Token\SchemeenumLight or dark, the side of light-dark() read
Phil\UxCss\Token\DesignTokensfinal readonly classThe custom properties of a sheet in the format of the Design Tokens Community Group
Phil\UxCss\Token\Calcfinal classA length, a duration or a number, calc() and var() computed within bounds
Phil\UxCss\Token\Quantityfinal readonly classA number and its unit
Phil\UxCss\Token\CssValuefinal class, internalThe lists, font families and cubic Béziers DesignTokens reads
Phil\UxCss\Contrast\ContrastRulefinal readonly classThe contrast rule, TEXT (4.5) and NON_TEXT (3.0)
Phil\UxCss\Contrast\Pairfinal readonly classA foreground, a background, a minimum
Phil\UxCss\Contrast\Violationfinal readonly classA pair below its minimum, or a token that does not resolve
Phil\UxCss\Stylesheet\StylesheetBundlerfinal readonly classThe layered imports of an entry inlined
Phil\UxCss\Exception\UxCssExceptioninterfaceEvery exception of the library
Phil\UxCss\Exception\InvalidColorfinal classA colour not written as oklch()
Phil\UxCss\Exception\UnreadableSheetfinal classA stylesheet that cannot be read, or an import outside the directory of the entry