Many aspects of the widget UI can be modified via CSS Variables.
Overriding the Defaults
To override the defaults simply use .annoto CSS class selector. For Example:
.annoto { --nnc-color-dark:#333333;}
Widget Utility Classes
The widget has different utility classes that are appended to the .annoto class based on a situation. The styling can be modified using combinations of those classes. For example, the most common state is dark theme of the widget:
Below is a list of the most useful utility classes:
Utility Class
Description
nnc-dark-theme
Used it different cases such as when widget is an overlay inside the player, player is in full screen, or configured as the default theme in the widget configuration.
nn-player-fs
Added when player is in full screen
nnc-mobile
Added when the user uses a mobile device, and the widget applies UX for mobile devices.
nn-is-open
Widget is in open state.
nn-[PAGE]-page
Changed based on the view the widget is showing. Common views:
nn-notes-pagenn-comments-pagenn-preferences-page
nnc-rtl
Widget has Right to Left layout.
Please notice in most cases nnc prefix is used. but in some cases nn is used instead.
Colors Palette
Main Colors
The main colors used by the widget are: primary, secondary, tertiary, light, medium, dark, darkest, success, warning, notice, danger.
Each main color has variants for different effects: contrast, shade and tint
Some or all the colors can be modified.
If for example primary color is modified, please make sure to set all it's variants to appropriate values, a great helper tool by Ionic can be used to generate the variants: https://ionicframework.com/docs/theming/color-generator
.annoto { --nnc-color-primary:#ea5451; --nnc-color-primary-contrast:#ffffff; --nnc-color-primary-shade:#ce4a47; --nnc-color-primary-tint:#ec6562; --nnc-color-primary-rgb:234,84,81; --nnc-color-primary-contrast-rgb:255,255,255; --nnc-color-secondary:#00a9a4; --nnc-color-secondary-contrast:#ffffff; --nnc-color-secondary-shade:#009590; --nnc-color-secondary-tint:#1ab2ad; --nnc-color-secondary-rgb:0,169,164; --nnc-color-secondary-contrast-rgb:255,255,255; --nnc-color-tertiary:#5450e8; --nnc-color-tertiary-contrast:#ffffff; --nnc-color-tertiary-shade:#4a46cc; --nnc-color-tertiary-tint:#6562ea; --nnc-color-tertiary-rgb:84,80,232; --nnc-color-tertiary-contrast-rgb:255,255,255; --nnc-color-light:#f4f5f8; --nnc-color-light-contrast:#000000; --nnc-color-light-shade:#d7d8da; --nnc-color-light-tint:#f5f6f9; --nnc-color-light-rgb:244,245,248; --nnc-color-light-contrast-rgb:0,0,0; --nnc-color-dark:#35353a; --nnc-color-dark-contrast:#ffffff; --nnc-color-dark-shade:#2f2f33; --nnc-color-dark-tint:#49494e; --nnc-color-dark-rgb:53,53,58; --nnc-color-dark-contrast-rgb:255,255,255;/** same format is used for the other colors * medium, darkest, success, warning, notice, and danger */}