Primary
colors.primary
Brand primary — stylex.defineVars docs example
6 token ngữ nghĩa chính thức
Tổng 6 màu
StyleX là thư viện CSS-in-JS của Meta dùng để định nghĩa token thiết kế phân tích tĩnh qua defineVars. Token được đặt cùng component và biên dịch thành atomic CSS.
Khai báo token brand qua stylex.defineVars và áp dụng bằng API stylex.props. StyleX đảm bảo style xác định và không xung đột.
colors.primary
Brand primary — stylex.defineVars docs example
colors.secondary
Secondary brand color — docs example
colors.text
Primary text color — docs example
colors.background
Page background — docs example
colors.accent
Accent — docs example (dark: lightblue)
colors.primaryText
Typography token — docs example (dark: white)
Không có màu phù hợp
Nguồn: StyleX · defineVars docs example