Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typography-settings-breakpoints #156

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

artreaktor-niks
Copy link
Collaborator

This code contains default settings for the font size organization according to a lot of projects settings.
We can use this and edit it for our specific cases according to the design.

@andypost
Copy link
Contributor

andypost commented Apr 26, 2022

It makes sense!

The only question is recipe to apply to existing projects, this changes breaking backward compatibility

@andypost andypost added enhancement New feature or request wip labels Apr 26, 2022
@andypost andypost linked an issue Apr 26, 2022 that may be closed by this pull request
/* stylelint-disable-next-line order/order */
@media (min-width: 1921px) {
--site-max-width: 90.14rem;
--root-font-size: 21.3px;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change depending on the project. It shouldn't be in kaizen-tg

}
/* stylelint-disable-next-line order/order */
@media (min-width: 1921px) {
--site-max-width: 90.14rem;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change depending on the project. It shouldn't be in kaizen-tg
Moreover - you don't need to have rems in sources.

*/
}
/* stylelint-disable-next-line order/order */
@media (min-width: 1921px) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use breakpoints from themename.libraries.yml file, but once again - it's a project specific change

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^ prev comment

@db l {
--root-font-size: calc(16 * (1vw / 14.4));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's a project specific settings, shouldn't be here

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^ prev comment


/* stylelint-disable-next-line order/order */
@media all and (min-width: 376px) {
--root-font-size: 100%;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's a project specific settings, shouldn't be here

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^ prev comment

* Mobile design width is 375px, so everything below should be scaled proportionally
* font would be decreased
*/
--root-font-size: 4.278vw;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's a project specific settings, shouldn't be here

Copy link
Contributor

@iberdinsky-skilld iberdinsky-skilld Apr 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is project specific.
but maybe move it all of this to separated css file.
and locate to kaizen-core.
it is very useful but should be optional.

--outline-offset: var(--outline-size);

/* site sizes */
--site-max-width: 1920px;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's a project specific settings, shouldn't be here

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on my side it is like normal usual variable


/* outline settings */
--outline-color: blue;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use variable

--root-font-size: 2vw;
--base-font-size: 16px;
/* font-sizes */
--font-size--xxxxxl: 48px;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All these custom font-sizes are project specific. Shouldn't be here

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe keep them. but they shouldn't be used by components.
and also reduce their amount.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is kind of every project starting settings. so few vars of that type can be here. just as boilerplate

@artreaktor-niks artreaktor-niks force-pushed the typography-settings-breakpoints branch from 383bf5b to 4d43b8a Compare May 2, 2022 08:52
@artreaktor-niks
Copy link
Collaborator Author

artreaktor-niks commented May 2, 2022

Removed "start-kit" for variables and typography into another folder kaizen-basic-components
It is like a store for plug&play settings and components.

@artreaktor-niks artreaktor-niks force-pushed the typography-settings-breakpoints branch from 4d43b8a to c1575bc Compare May 2, 2022 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wip
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Color module alternative.
4 participants