UNPKG

rsuite

Version:

A suite of react components

362 lines (318 loc) 13.4 kB
// see https://rsuitejs.com/design/dark & { // Gray levels --rs-gray-50: @B050-high-contrast; --rs-gray-100: @B100-high-contrast; --rs-gray-200: @B200-high-contrast; --rs-gray-300: @B300-high-contrast; --rs-gray-400: @B400-high-contrast; --rs-gray-500: @B500-high-contrast; --rs-gray-600: @B600-high-contrast; --rs-gray-700: @B700-high-contrast; --rs-gray-800: @B800-high-contrast; --rs-gray-900: @B900-high-contrast; // Highlight levels --rs-primary-50: @H050-high-contrast; --rs-primary-100: @H100-high-contrast; --rs-primary-200: @H200-high-contrast; --rs-primary-300: @H300-high-contrast; --rs-primary-400: @H400-high-contrast; --rs-primary-500: @H500-high-contrast; --rs-primary-600: @H600-high-contrast; --rs-primary-700: @H700-high-contrast; --rs-primary-800: @H800-high-contrast; --rs-primary-900: @H900-high-contrast; // Spectrum levels each(@spectrum, .(@color-name) { @color: @@color-name; @color-name-50: ~'@{color-name}-50-high-contrast'; --rs-@{color-name}-50: @@color-name-50; each(range(9), { @level: @{index}00; @color-name-level: ~'@{color-name}-@{level}-high-contrast'; --rs-@{color-name}-@{level}: @@color-name-level; }); }); // Stateful colors --rs-state-success: @green-high-contrast; --rs-state-info: @blue-high-contrast; --rs-state-warning: @yellow-high-contrast; --rs-state-error: @red-high-contrast; // Reset --rs-body: @B900-high-contrast; // Misc --rs-text-link: @H500-high-contrast; --rs-text-link-hover: @H400-high-contrast; --rs-text-link-active: @H300-high-contrast; --rs-text-primary: @B050-high-contrast; --rs-text-secondary: @B200-high-contrast; --rs-text-tertiary: @B300-high-contrast; --rs-text-heading: @B000-high-contrast; --rs-text-inverse: @B800-high-contrast; --rs-text-heading-inverse: @B900-high-contrast; --rs-text-active: @H500-high-contrast; --rs-text-disabled: @B500-high-contrast; --rs-border-primary: @B100-high-contrast; --rs-border-secondary: @B700-high-contrast; --rs-bg-card: @B800-high-contrast; --rs-bg-overlay: @B800-high-contrast; --rs-bg-well: @B900-high-contrast; --rs-bg-active: @H500-high-contrast; --rs-bg-backdrop: fade(@B900-high-contrast, 80%); --rs-state-hover-bg: @B600-high-contrast; --rs-color-focus-ring: @B000-high-contrast; --rs-state-focus-shadow: 0 0 0 3px @B900-high-contrast, 0 0 0 5px @B000-high-contrast; --rs-state-focus-shadow-slim: 0 0 0 2px @B000-high-contrast; --rs-state-focus-outline: 3px solid fade(@H500-high-contrast, 25%); --rs-shadow-overlay: 0 4px 4px rgba(0, 0, 0, 0.12), 0 0 10px rgba(0, 0, 0, 0.06); // Button --rs-btn-default-bg: transparent; --rs-btn-default-text: @H500-high-contrast; --rs-btn-default-border: 1px solid @H500-high-contrast; --rs-btn-default-hover-bg: transparent; --rs-btn-default-hover-text: @H400-high-contrast; --rs-btn-default-active-bg: transparent; --rs-btn-default-active-text: @H200-high-contrast; --rs-btn-default-disabled-bg: transparent; --rs-btn-default-disabled-text: @H500-high-contrast; --rs-btn-primary-bg: @H500-high-contrast; --rs-btn-primary-text: @B900-high-contrast; --rs-btn-primary-hover-bg: @H400-high-contrast; --rs-btn-primary-active-bg: @H200-high-contrast; --rs-btn-subtle-text: @H500-high-contrast; --rs-btn-subtle-hover-bg: transparent; --rs-btn-subtle-hover-text: @H400-high-contrast; --rs-btn-subtle-active-bg: transparent; --rs-btn-subtle-active-text: @H200-high-contrast; --rs-btn-subtle-disabled-text: @B500-high-contrast; --rs-btn-ghost-border: @H500-high-contrast; --rs-btn-ghost-text: @H500-high-contrast; --rs-btn-ghost-hover-border: @H400-high-contrast; --rs-btn-ghost-hover-text: @H400-high-contrast; --rs-btn-ghost-active-border: @H200-high-contrast; --rs-btn-ghost-active-text: @H200-high-contrast; --rs-btn-link-text: @H500-high-contrast; --rs-btn-link-hover-text: @H400-high-contrast; --rs-btn-link-active-text: @H200-high-contrast; // Icon Button --rs-iconbtn-addon: transparent; --rs-iconbtn-activated-addon: transparent; --rs-iconbtn-pressed-addon: transparent; --rs-iconbtn-primary-addon: @H400-high-contrast; --rs-iconbtn-primary-activated-addon: @H300-high-contrast; --rs-iconbtn-primary-pressed-addon: @H100-high-contrast; // Divider --rs-divider-border: @B600-high-contrast; // Loader --rs-loader-ring: fade(@B050-high-contrast, 30); --rs-loader-rotor: @B000-high-contrast; --rs-loader-backdrop: fade(@B900-high-contrast, 83%); --rs-loader-ring-inverse: fade(@B050-high-contrast, 80); --rs-loader-rotor-inverse: @B500-high-contrast; --rs-loader-backdrop-inverse: fade(@B000-high-contrast, 90); // Message --rs-message-success-header: #fff; --rs-message-success-text: #fff; --rs-message-success-icon: #fff; --rs-message-success-bg: @green-900; --rs-message-success-border: @green-300; --rs-message-info-header: #fff; --rs-message-info-text: #fff; --rs-message-info-icon: #fff; --rs-message-info-bg: @blue-900; --rs-message-info-border: @blue-500; --rs-message-warning-header: #fff; --rs-message-warning-text: #fff; --rs-message-warning-icon: #fff; --rs-message-warning-bg: @yellow-900; --rs-message-warning-border: @yellow-500; --rs-message-error-header: #fff; --rs-message-error-text: #fff; --rs-message-error-icon: #fff; --rs-message-error-bg: @red-900; --rs-message-error-border: @red-300; // Tooltip --rs-tooltip-bg: @B800-high-contrast; --rs-tooltip-text: @B000-high-contrast; // Progress --rs-progress-bg: @B700-high-contrast; --rs-progress-bar: @H500-high-contrast; --rs-progress-bar-success: @green; --rs-progress-bar-fail: @red; // Placeholder --rs-placeholder: @B600-high-contrast; --rs-placeholder-active: lighten(@B600-high-contrast, 5%); // Dropdown --rs-dropdown-divider: @B600-high-contrast; --rs-dropdown-item-bg-hover: @B600-high-contrast; --rs-dropdown-item-bg-active: fade(@H900-high-contrast, 20); --rs-dropdown-item-text-active: @H500-high-contrast; --rs-dropdown-header-text: @B500-high-contrast; --rs-dropdown-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.2), 0 4px 4px 3px rgba(0, 0, 0, 0.24); // ARIA menu --rs-menuitem-active-bg: transparent; --rs-menuitem-active-text: @H500-high-contrast; // Steps --rs-steps-border: @B200-high-contrast; --rs-steps-state-finish: @H500-high-contrast; --rs-steps-border-state-finish: @H500-high-contrast; --rs-steps-state-wait: @B200-high-contrast; --rs-steps-state-process: @H700-high-contrast; --rs-steps-state-error: @red; --rs-steps-border-state-error: @red; --rs-steps-icon-state-process: @H500-high-contrast; --rs-steps-icon-state-error: @red; // Navs --rs-navs-text: @B200-high-contrast; --rs-navs-text-hover: @H500-high-contrast; --rs-navs-bg-hover: transparent; --rs-navs-text-active: @H500-high-contrast; --rs-navs-bg-active: @B400-high-contrast; --rs-navs-tab-border: @B600-high-contrast; --rs-navs-subtle-border: @B600-high-contrast; --rs-navs-selected: @H500-high-contrast; // Navbar --rs-navbar-default-bg: @B800-high-contrast; --rs-navbar-default-text: @B050-high-contrast; --rs-navbar-default-selected-text: @H500-high-contrast; --rs-navbar-default-hover-bg: transparent; --rs-navbar-default-hover-text: @H500-high-contrast; --rs-navbar-inverse-bg: @B800-high-contrast; --rs-navbar-inverse-text: @B050-high-contrast; --rs-navbar-inverse-selected-bg: transparent; --rs-navbar-inverse-selected-text: @H500-high-contrast; --rs-navbar-inverse-hover-bg: transparent; --rs-navbar-inverse-hover-text: @H500-high-contrast; --rs-navbar-subtle-bg: @B800-high-contrast; --rs-navbar-subtle-text: @B050-high-contrast; --rs-navbar-subtle-selected-text: @H500-high-contrast; --rs-navbar-subtle-hover-bg: transparent; --rs-navbar-subtle-hover-text: @H500-high-contrast; // Sidenav --rs-sidenav-default-bg: @B800-high-contrast; --rs-sidenav-default-text: @B050-high-contrast; --rs-sidenav-default-selected-text: @H500-high-contrast; --rs-sidenav-default-hover-bg: transparent; --rs-sidenav-default-hover-text: @H500-high-contrast; --rs-sidenav-default-footer-border: @B050-high-contrast; --rs-sidenav-inverse-bg: @B800-high-contrast; --rs-sidenav-inverse-text: @B050-high-contrast; --rs-sidenav-inverse-selected-bg: transparent; --rs-sidenav-inverse-selected-text: @H500-high-contrast; --rs-sidenav-inverse-hover-bg: transparent; --rs-sidenav-inverse-footer-border: @B050-high-contrast; --rs-sidenav-subtle-bg: @B800-high-contrast; --rs-sidenav-subtle-text: @B050-high-contrast; --rs-sidenav-subtle-selected-text: @H500-high-contrast; --rs-sidenav-subtle-hover-bg: transparent; --rs-sidenav-subtle-hover-text: @H500-high-contrast; --rs-sidenav-subtle-footer-border: @B050-high-contrast; // Input --rs-input-bg: @B800-high-contrast; --rs-input-focus-border: @H500-high-contrast; --rs-input-disabled-bg: @B700-high-contrast; // ARIA Listboxes --rs-listbox-option-hover-bg: transparent; --rs-listbox-option-hover-text: @H500-high-contrast; --rs-listbox-option-selected-text: @H500-high-contrast; --rs-listbox-option-selected-bg: transparent; --rs-listbox-option-disabled-text: @B500-high-contrast; --rs-listbox-option-disabled-selected-text: @H200-high-contrast; // Checkbox --rs-checkbox-icon: @B800-high-contrast; --rs-checkbox-border: @B100-high-contrast; --rs-checkbox-checked-bg: @H500-high-contrast; --rs-checkbox-disabled-bg: @B500-high-contrast; // Radio --rs-radio-marker: @B800-high-contrast; --rs-radio-border: @B100-high-contrast; --rs-radio-checked-bg: @H500-high-contrast; --rs-radio-disabled-bg: @B500-high-contrast; // Rate --rs-rate-symbol: @B100-high-contrast; --rs-rate-symbol-checked: @H500-high-contrast; // Toggle --rs-toggle-bg: @B800-high-contrast; --rs-toggle-thumb: @B100-high-contrast; --rs-toggle-hover-bg: @B800-high-contrast; --rs-toggle-disabled-bg: @B800-high-contrast; --rs-toggle-disabled-thumb: @B300-high-contrast; --rs-toggle-checked-bg: @H500-high-contrast; --rs-toggle-checked-thumb: @B800-high-contrast; --rs-toggle-checked-hover-bg: @H400-high-contrast; --rs-toggle-checked-disabled-bg: @H900-high-contrast; --rs-toggle-checked-disabled-thumb: @B800-high-contrast; // Slider --rs-slider-bar: @B600-high-contrast; --rs-slider-hover-bar: @B600-high-contrast; --rs-slider-thumb-border: @H500-high-contrast; --rs-slider-thumb-bg: @B700-high-contrast; --rs-slider-thumb-hover-shadow: 0 0 0 8px fade(@H500-high-contrast, 25); --rs-slider-progress: @H500-high-contrast; // Uploader --rs-uploader-item-bg: @B300-high-contrast; --rs-uploader-item-hover-bg: @B800-high-contrast; --rs-uploader-item-hover-text: @H500-high-contrast; --rs-uploader-overlay-bg: fade(@B600-high-contrast, 80); --rs-uploader-dnd-bg: @B700-high-contrast; --rs-uploader-dnd-border: @B200-high-contrast; --rs-uploader-dnd-hover-border: @H500-high-contrast; // Avatar --rs-avatar-bg: @B400-high-contrast; --rs-avatar-text: @B000-high-contrast; // Badge --rs-badge-bg: @red-500; --rs-badge-text: @B000-high-contrast; // Tag --rs-tag-bg: @B600-high-contrast; --rs-tag-close: @red; // Carousel --rs-carousel-bg: @B600-high-contrast; --rs-carousel-indicator: fade(@B000-high-contrast, 40); --rs-carousel-indicator-hover: @B000-high-contrast; --rs-carousel-indicator-active: @H500-high-contrast; // Panel --rs-panel-shadow: 0 4px 4px rgba(0, 0, 0, 0.12), 0 0 10px rgba(0, 0, 0, 0.06); // Pagination --rs-pagination-item-text: @B050-high-contrast; --rs-pagination-item-current-text: @H500-high-contrast; // List --rs-list-bg: transparent; --rs-list-border: @B700-high-contrast; --rs-list-hover-bg: @B600-high-contrast; --rs-list-placeholder-bg: fade(@H900-high-contrast, 20%); --rs-list-placeholder-border: @H500-high-contrast; // Timeline --rs-timeline-indicator-bg: @B500-high-contrast; --rs-timeline-indicator-active-bg: @H500-high-contrast; // Table --rs-table-shadow: rgba(9, 9, 9, 0.99); --rs-table-sort: @H500-high-contrast; --rs-table-resize: @H500-high-contrast; --rs-table-scrollbar-track: @B700-high-contrast; --rs-table-scrollbar-thumb: @B200-high-contrast; --rs-table-scrollbar-thumb-active: @B100-high-contrast; --rs-table-scrollbar-vertical-track: @B700-high-contrast; // Drawer --rs-drawer-bg: @B700-high-contrast; --rs-drawer-shadow: 0 4px 4px rgba(0, 0, 0, 0.12), 0 0 10px rgba(0, 0, 0, 0.06); // Modal --rs-modal-shadow: 0 4px 4px rgba(0, 0, 0, 0.12), 0 0 10px rgba(0, 0, 0, 0.06); --rs-modal-border: 1px solid @B100-high-contrast; // Form --rs-form-errormessage-text: #fff; --rs-form-errormessage-bg: @red-500; --rs-form-errormessage-border: @red-500; // Picker --rs-picker-value: @H500-high-contrast; --rs-picker-count-bg: @H500-high-contrast; --rs-picker-count-text: @B900-high-contrast; // Calendar --rs-calendar-today-bg: @H500-high-contrast; --rs-calendar-today-text: @B900-high-contrast; --rs-calendar-range-bg: fade(@H900-high-contrast, 50%); --rs-calendar-time-unit-bg: @B900-high-contrast; --rs-calendar-date-selected-text: @B900-high-contrast; // Popover --rs-popover-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); }