theme library
Design tokens of Widgets Easier: WeTheme and its colour, size, radius, spacing and shadow schemes.
Import this instead of widgets_easier.dart when you only need to build
or customise a theme, for example in your app's ThemeData setup.
Classes
- SemanticColors
- Static access to the default light palette.
- WeColorScheme
- The colour design tokens of Widgets Easier.
- WeControlSize
- Dimensions of a single control size step (large / default / small).
- WeIcons
- The bundled status icons, tinted with a semantic colour.
- WePlatform
- Platform checks shared by the components.
- WeRadiusScheme
- Corner radius tokens.
- WeShadowScheme
-
Elevation tokens, mirroring Element Plus'
--el-box-shadow*variables. - WeSizeScheme
- Size design tokens: one WeControlSize per SizeEnum step, for regular controls (buttons, inputs, selects) and for compact ones (tags, badges).
- WeSpacingScheme
- Spacing scale tokens.
- WeTheme
- The design tokens used by every Widgets Easier component.
Enums
- EffectEnum
- SemanticEnum
- SizeEnum
- WeInteraction
- How the user drives the app, which decides control sizes and whether hover triggers work. Set it on WeTheme.interaction.
- WePlatformFit
- Which platform a component is designed for. The gallery and the docs label every component with one of these.
Extensions
- SemanticEnumColors on SemanticEnum
- Colour helpers on SemanticEnum.
- WeColorShades on WeColorScheme
-
Element Plus derives nine tints of every semantic colour
(
--el-color-primary-light-3…light-9) plus one shade (--el-color-primary-dark-2) and uses them for hover states, plain buttons, light tags and alert backgrounds. - WeThemeContext on BuildContext
- Convenience accessors on BuildContext.
Functions
-
findStatusColor(
SemanticEnum type) → Color -
Returns the colour of
typein the default light palette.