The technology stack used for the Parsley Design System consists of React, Typescript, Emotion, CSS Variables, Semantic HTML5 and Figma.
React is a JavaScript library for rendering user interfaces. A User interface is built from small units like buttons, text, and images. React combines them into reusable, nestable components.
The Parsley Design System has intentionally been custom built within React, across the components their is minimal reliance on external packages - rather the approach has been to create design system elements that define and control their own behaviour.
TypeScript is a strongly typed programming language that builds on JavaScript, giving you better tooling at any scale.
TypeScript adds additional syntax to JavaScript to support a tighter integration with code editors which catch errors early. TypeScript code converts to JavaScript, which runs anywhere JavaScript runs. TypeScript understands JavaScript and uses type inference to provide tooling without additional code.
Emotion is a CSS in JavaScript library which is a modern approach to styling design systems. The Parsley Design System uses the styled component, css and global libraries of Emotion.
The css function accepts styles as a template literal, object, or array of objects and returns a class name. It is the foundation of emotion.
The global function allows for global styled to be inserted and is used for a css reset and to apply the core theme throughout the design system.
CSS Variables are custom properties that are assign values that are store in the core theme and can be used anywhere through an application. In the Parsley Design System they are used via the styles defined in Emotion.
In HTML, semantic markup refers to applying meaning to the represented piece of content. Applying semantic markup greatly benefits accessibility and applies consistency to styling HTML.
The Parsley Design System is built with a focus on exact HTML5 semantic markup which acts as a foundation for accessible content that applies a content first strategy and separates content from presentation.
HTML5 semenatic elements like main, aside, header, footer and so on are used as the primary sectioning containers throughout the Parsley Design System.
Figma is the design tool used to create design assets within the Parsley Design System. Within Figma there are design files containing foundations and components which match the langauge and visual styling of the assets within the Parsley Design System.