Repository navigation
v0.4.0
uv add "figkit @ git+https://github.com/BenBotsch/FigureKit@v0.4.0"Added
- A style of your own.
load_stylereads a tokens file in the new version 2 with any number of
themes, adefaulttheme whose files carry no suffix, themepairs, project font files in
font.filesand acssmapping for the stylesheet check.StyleErrorlists every problem of
the file with its place and catches unknown keys;tokens.schema.jsonhelps editors. render,page,page_entry,path_for,check,check_tokensandink_ontake an
optionalstyle.figkit checkpairs only themes that name a pair, and the manifest lists the
files under the names of all themes.- Each
Themecarries its fonts and sizes asTypographyintheme.type; the helpers,rcand
the minimum text size take them from the theme they draw with. [tool.figkit]inpyproject.tomlnamestokensandcssof a project.figkit.project()
andfigkit.project_style()read it, andfigkit checkuses it unless--styleor--css
override it.
Changed
figkit check --tokensis now--css;--tokensstays as an alias.- The bundled
tokens.jsonuses version 2. Files withoutversionstill load as version 1 and
give the same style. A version 2 file withoutcssnames no properties forcheck --css. mono()andmono_ticks()accept a theme and use its mono family.
Fixed
- A tokens file of version 1 defaults to
lighteven whendarkcomes first in it. - A
cssindex beyond a list token and an absolute pattern infont.filesare aStyleError
instead of a crash incheck_tokensorload_style. figkit check --cssreports a stylesheet it cannot read instead of failing with a traceback.
Changes: v0.3.1...v0.4.0