-
Notifications
You must be signed in to change notification settings - Fork 73
Developing
The following information should give you a first introduction at how the Photon Design System is built and developed.
The global table of contents is automatically generated based on what is listed under contents/index.json
. When you create a new page under /contents
make sure to add such page also in this json file. If the page is a first level page use the following code. The file name should be the same as the one specified under /contents
.
{
"title": "Page Title",
"file": "page-title.html"
}
If the page is a second level page use the following code instead. Add as many pages as you add under /contents
.
{
"title": "Chapter Title",
"pages": [
{
"title": "Page Title",
"file": "page-title.html"
},
{
"title": "Page Title Two",
"file": "page-title-two.html"
}
]
}
When we write CSS we follow two approaches. Global styles are handled with Tachyons CSS. We use this framework for the website layout and for the table of contents.
For everything which is related to a content page, so .html
files living under /contents
, we scope styles in SCSS. You can find these styles under /src/styles/page.scss
. This approach enables editors and content creator to write plain HTML without worrying about classes, id and CSS in general.