Skip to main content

BUTTON_PRIMARY_CLASS

Constant BUTTON_PRIMARY_CLASS 

Source
pub const BUTTON_PRIMARY_CLASS: &str = "w-full py-2.5 px-4 bg-paper-accent text-paper-theme font-medium rounded-full hover:brightness-110 active:scale-[0.98] transition-all duration-200 cursor-pointer";
Expand description

主按钮 CSS 类,用于表单提交等主操作按钮。

text-paper-theme 而非硬编码 text-white--color-paper-theme 随主题反转 (浅色主题近白、深色主题近黑),配合深色主题下偏浅的 --color-paper-accent 背景色(#a6e3a1 柔和绿)才能保住文字对比度——硬编码白字在深色主题下几乎不可读。