Roberto Redradix
f7275f8e30
refactor(core): move all re-export declaration to the end of the files
2023-09-11 18:45:28 +02:00
Roberto Redradix
1fcb0e0860
feat(core): describe typography requirements and Google Fonts implementation aid
2023-09-11 18:45:28 +02:00
Roberto Redradix
af856a642e
refactor(core): separate file writting logic from output adapters
2023-09-07 17:26:22 +02:00
Roberto Redradix
f33dc7a9b8
feat(core): allow to export SCSS files
2023-09-07 16:59:03 +02:00
Roberto Redradix
9a39da7a65
refactor(core): delegate CSS tokenization and serialization to the outputter
2023-09-07 16:58:39 +02:00
Roberto Redradix
b76d4d57ef
refactor(core): serialize each CSS variable at a time
2023-09-07 10:50:33 +02:00
Roberto Redradix
70c3d9a665
refactor(core): sort config types
2023-09-05 17:56:42 +02:00
Roberto Redradix
98597dbf4c
feat!(core): allow to export JSON files
...
BREAKING CHANGE: CSS variables (color) are no longer lowercase. Since CSS custom property names are case sensitive, this would break existing consumers.
2023-09-05 14:40:00 +02:00
Roberto Redradix
1fd8a579de
chore(core): remove unused type imports
2023-09-05 12:08:32 +02:00
Roberto Redradix
bef9cd65ef
refactor(core): remove PenpotExportFile cumbersome abstraction
2023-09-05 12:03:54 +02:00
Roberto Redradix
924d5bec7b
refactor(core): colocate schemas, types and validators
2023-09-04 18:49:12 +02:00
Roberto Redradix
f7b972e032
chore(core): disallow empty arrays in user config
2023-09-04 17:42:36 +02:00
Roberto Redradix
83ba6f93d5
refactor(core): validate user config in a more expressive way
...
zod unions are exclusive, so the UserConfig type couldn't be kept as a union either for having at least a colors, typographies or pages output.
This check has been moved to a runtime zod refine custom validation.
2023-09-04 17:42:34 +02:00
Roberto Redradix
bf6f6a723a
test(core): add tests for CSS ident tokens
2023-09-04 13:41:32 +02:00
Roberto Redradix
e35186eae9
refactor!: split penpot-export into cli and core modules
2023-09-01 17:43:45 +02:00