Replies: 1 comment 1 reply
-
By default every package will have a global variable
When they leave out One can overwrite this by explicitly adding
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Package Types
We have a bunch of different kinds of packages.
main: true
): these provide content (someone adds them as a dependency to remix content)app: $app-spec
)design-system: true
)theme: <name of the design system>
)font-package: true
)typography-package: true
)color-scheme: true
)syntax-theme: true
)category: true
)flavour: <name-of-category>
)auth: $auth-spec
)Design System
Design system kinds of splits the universe, every package has to chose a design system, and two packages using the same design system can co-exist easily. So design system becomes a property of
fastn.package
. And since we are trying to bless one design system, this property is optional, and default value is the blessed design system. So far in 0.4 we can only have one design system, codified in ftd.color-scheme etc types. But we are going to move these types from fastn to a design system community package, eg:fastn-community.github.io/design-system
(ds
for now) is our blessed design system.ds
will provideds.page
(UI elements),ds.color-scheme
(design related variables), etc.Theme
Lets say there exists a theme called
fastn-community.github.io/midnight-storm
, which "implements"fastn-community.github.io/design-system
, and provides same set of "ds.page
(UI elements),ds.color-scheme
(design related variables), etc." etc, but the actual UI element could look different, or design system variables may be different.Whatever is the
theme
defined byfastn.package
, will get passed to all dependencies by default, so the last line withtheme
can be omitted.Using packages from different design system universes in same content package
Some content package may want that, so they can do this:
Beta Was this translation helpful? Give feedback.
All reactions