MCPcopy
hub / github.com/streamlit/streamlit / StreamlitTheme

Interface StreamlitTheme

frontend/component-v2-lib/src/theme.ts:38–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 * The Streamlit theme properties that are exposed to the component.
37 */
38export interface StreamlitTheme {
39 // Direct inputs from theme config.toml
40 primaryColor: string
41 backgroundColor: string
42 secondaryBackgroundColor: string
43 textColor: string
44 linkColor: string
45 linkUnderline: boolean
46 headingFont: string
47 codeFont: string
48 baseRadius: string
49 buttonRadius: string
50 baseFontSize: string
51 baseFontWeight: number
52 codeFontWeight: number
53 codeFontSize: string
54 headingFontSizes: string[]
55 // Individual heading font sizes and weights for levels 1–6. These provide
56 // direct access to specific heading levels and are derived from the same
57 // source as the headingFontSizes / headingFontWeights arrays. Both forms are
58 // maintained for backward compatibility and convenience.
59 headingFontSize1: string
60 headingFontSize2: string
61 headingFontSize3: string
62 headingFontSize4: string
63 headingFontSize5: string
64 headingFontSize6: string
65 headingFontWeights: number[]
66 headingFontWeight1: number
67 headingFontWeight2: number
68 headingFontWeight3: number
69 headingFontWeight4: number
70 headingFontWeight5: number
71 headingFontWeight6: number
72 borderColor: string
73 dataframeBorderColor: string
74 dataframeHeaderBackgroundColor: string
75 codeBackgroundColor: string
76 font: string
77 chartCategoricalColors: string[]
78 chartSequentialColors: string[]
79 chartDivergingColors: string[]
80
81 // Computed
82 headingColor: string
83 borderColorLight: string
84 codeTextColor: string
85 widgetBorderColor: string
86
87 // Color palette
88 redColor: string
89 orangeColor: string
90 yellowColor: string
91 blueColor: string
92 greenColor: string
93 violetColor: string
94 grayColor: string
95 redBackgroundColor: string

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…