Cotton code
128 lines · 5.9 KB · SwiftRaw
// GENERATED by `scripts/gen-theme-keys/gen.py` from the shipped paper theme's// `scale.tokens` — do not edit by hand; run the script after a token is added to// `crates/cotton-core/kits/shell/themes/*.json`.extension ThemeScale {    /// Every token the theme's `scale.tokens` carries, by its    /// row spelling. Read one with `theme.scale[.key]`.    public enum Key: String, CaseIterable, Sendable {        case bodySize = "body_size"        case cardMottleOpacity = "card_mottle_opacity"        case cardRimOpacity = "card_rim_opacity"        case cardRuleOpacity = "card_rule_opacity"        case cardShadowOpacity = "card_shadow_opacity"        case cardUnderShade = "card_under_shade"        case fanBloomScroll = "fan_bloom_scroll"        case fanCapLift = "fan_cap_lift"        case fanCapSize = "fan_cap_size"        case fanCapsFaint = "fan_caps_faint"        case fanCapsGap = "fan_caps_gap"        case fanCollapseDamping = "fan_collapse_damping"        case fanCollapseResponse = "fan_collapse_response"        case fanCollapseScroll = "fan_collapse_scroll"        case fanCollapsedSize = "fan_collapsed_size"        case fanFlingFull = "fan_fling_full"        case fanFlingMin = "fan_fling_min"        case fanFlingReach = "fan_fling_reach"        case fanGhostWash = "fan_ghost_wash"        case fanHoldMs = "fan_hold_ms"        case fanLift = "fan_lift"        case fanOpenFadeMs = "fan_open_fade_ms"        case fanOverscroll = "fan_overscroll"        case fanPictureQuality = "fan_picture_quality"        case fanPictureReach = "fan_picture_reach"        case fanPictureScale = "fan_picture_scale"        case fanPictureSettleMs = "fan_picture_settle_ms"        case fanPosterScale = "fan_poster_scale"        case fanRadius = "fan_radius"        case fanRecordGlyph = "fan_record_glyph"        case fanRecordHintSize = "fan_record_hint_size"        case fanRecordPillPad = "fan_record_pill_pad"        case fanRecordPillSize = "fan_record_pill_size"        case fanRecordPulse = "fan_record_pulse"        case fanRecordPulseMs = "fan_record_pulse_ms"        case fanRecordPulseOpacity = "fan_record_pulse_opacity"        case fanRecordSize = "fan_record_size"        case fanSettledScale = "fan_settled_scale"        case fanSilenceMs = "fan_silence_ms"        case fanSnapDamping = "fan_snap_damping"        case fanSnapResponse = "fan_snap_response"        case fanStepDeg = "fan_step_deg"        case fanSwipeLean = "fan_swipe_lean"        case fanTapSlop = "fan_tap_slop"        case fanTileW = "fan_tile_w"        case fanTop = "fan_top"        case fanTurnMsMax = "fan_turn_ms_max"        case fanTurnMsMin = "fan_turn_ms_min"        case fanTurnMsPerDeg = "fan_turn_ms_per_deg"        case fanVisibleDeg = "fan_visible_deg"        case hairline = "hairline"        case handSize = "hand_size"        case headRecordTitleSize = "head_record_title_size"        case headTitleSize = "head_title_size"        case insetFraction = "inset_fraction"        case insetMax = "inset_max"        case insetMin = "inset_min"        case metaSize = "meta_size"        case monogramSize = "monogram_size"        case navCircle = "nav_circle"        case navRowAir = "nav_row_air"        case navRowTop = "nav_row_top"        case pageDim = "page_dim"        case pageHeadGap = "page_head_gap"        case radius = "radius"        case radiusFraction = "radius_fraction"        case radiusMin = "radius_min"        case ringRadius = "ring_radius"        case ringSlipGap = "ring_slip_gap"        case ringSlipH = "ring_slip_h"        case ringSlipW = "ring_slip_w"        case screenTitleSize = "screen_title_size"        case searchPage = "search_page"        case sectionTitleSize = "section_title_size"        case shelfTileMinW = "shelf_tile_min_w"        case slipActGlyph = "slip_act_glyph"        case slipActRow = "slip_act_row"        case slipChevron = "slip_chevron"        case slipDeckle = "slip_deckle"        case slipEdge = "slip_edge"        case slipGap = "slip_gap"        case slipLift = "slip_lift"        case slipListW = "slip_list_w"        case slipPad = "slip_pad"        case slipRadius = "slip_radius"        case slipShadow = "slip_shadow"        case slipTilt = "slip_tilt"        case spacing = "spacing"        case stroke = "stroke"        case titleSize = "title_size"        case typeBodyLineHeight = "type_body_line_height"        case typeBodySize = "type_body_size"        case typeCaptionLineHeight = "type_caption_line_height"        case typeCaptionSize = "type_caption_size"        case typeCodeLineHeight = "type_code_line_height"        case typeCodeSize = "type_code_size"        case typeEditorTitleLineHeight = "type_editor_title_line_height"        case typeEditorTitleSize = "type_editor_title_size"        case typePageTitleLineHeight = "type_page_title_line_height"        case typePageTitleSize = "type_page_title_size"        case typePreviewLineHeight = "type_preview_line_height"        case typePreviewSize = "type_preview_size"        case typeRowTitleCompactLineHeight = "type_row_title_compact_line_height"        case typeRowTitleCompactSize = "type_row_title_compact_size"        case typeRowTitleLineHeight = "type_row_title_line_height"        case typeRowTitleSize = "type_row_title_size"        case typeScreenTitleLineHeight = "type_screen_title_line_height"        case typeScreenTitleSize = "type_screen_title_size"        case typeSectionLabelLineHeight = "type_section_label_line_height"        case typeSectionLabelSize = "type_section_label_size"        case typeSectionLabelTracking = "type_section_label_tracking"        case typeWeightBold = "type_weight_bold"        case typeWeightHeavy = "type_weight_heavy"        case typeWeightMedium = "type_weight_medium"        case typeWeightRegular = "type_weight_regular"        case typeWeightSemibold = "type_weight_semibold"        case voiceLineFade = "voice_line_fade"        case voiceLineLines = "voice_line_lines"    }}