- Removed
@vue/compat
and running all components in Vue 3 mode only
- Released for Vue 3. All components are compatible with Vue version 2 and 3 when using
@vue/compat
package. - Updated @vue/cli to v5
- Updated v-tooltip to floating-vue
- Deprecated HoCs in favour of Composition API and
@vueuse/core
.
- removed SASS from the project
- Enable the utility class
tw-border-2
to be able to define a 2px border width.
- Updated the
inset
key within thetheme
object map in order to extend the range of possible values in properties liketop
,bottom
,right
orleft
. Until now we used those defined inspacing
(and their corresponding in negative), from now on we will use those defined inwidth
, which already includesspacing
and adds values in percentages. In this way, we can use utility classes liketw-left-1/2
.
We've started a process of replacing SASS with PostCSS to be able to create custom themes using CSS variables. In addition, we added TailwindCSS to replace utility classes with their generated ones.
- deprecated usage of SASS language, loaders and
scss
folder. - deprecated usage of SASS in Vue SFC.
- deprecated
ec-grid
component. - deprecated
ec-p-*
utilities. - deprecated
ec-m-*
utilities. - deprecated
ec-align-center
utilities.
- removed complementary color scale because there is no formula for calculating them from the main color. they are used only in our apps, only one of them, and only in one place as a gradient. we will revisit their meaning and way how to generate them once we will be doing a refactoring of the functionality.
- color variables now uses HSL format only, to be easily themable by tweaking the saturation and lightness.
- color variables only contain HSL values so they can be used in
hsl()
andhsla()
functions.
.block {
color: hsl(var(--ec-some-variable));
background-color: hsla(var(--ec-some-variable), 0.5);
}
- removed
color-interactive
from reserved colors because it's not a reserved color and it's just a duplicate ofgray-color-level-4
. - names of the gray colors have been cleaned of misleading words, like
$level-6-disabled-lines
is now--ec-gray-color-level-6
. the name doesn't reflect the usage e.g. the color$level-6-disabled-lines
is used for borders, backgrounds, text colors, icon colors, etc.$level-5-placeholders
is not used for placeholders at all ... - names of the key colors have been cleaned of misleading words too, e.g.
$level-2-bank-blue
- bank blue doesn't make sense if we are going to make the components themeable. It is now--ec-key-color-level-2
. - moved
breakpoints
to tailwind config, so they can be used withresponsive
variant,@screen
ortheme()
. layout
variables moved to CSS variables.typography
variables moved to tailwind config. You can usetw-font-sans
,tw-font-sans-condensed
andtw-font-mono
.z-index
variables moved to tailwind config. You can usetw-z-<name_of_level>
, e.g.tw-z-notification
.
- mixin
ec-screen-reader-only
removed, usetw-sr-only
instead. - mixins
checkbox-border-radius
,shape-border-radius
andbutton-border-radius
removed, usetw-rounded-sm
,tw-rounded
andtw-rounded-button
. - mixin
border-level-6
removed, usetw-border tw-border-solid tw-border-gray-6
instead. - mixins from
media-queries.scss
removed, use@screen <breakpoint>
or<breakpoint>:<utility>
instead. Mixins likemedia__up-to-*
andmedia__only-mobile
will not be used in the future as tailwind is strictly mobile first. - mixins
media__orientation-landscape
andmedia__orientation-portrait
removed without replacement. They were not used anywhere in the code. - mixin
color-transition
renamed toec-text-color-transition
so it matches tailwind naming. - mixin
fade-transition
renamed toec-fade-transition
. - mixins from
typography.scss
removed, usetw-h1
,tw-body-text
,tw-input-label
instead. Only mixinbody-link
was preserved, but it was renamed toec-body-link
. - mixin
ellipsis
removed, usetw-truncate
instead. - mixin
body-strong
- removed color declaration to match thebody-text
. - mixin
btn
renamed in tailwind totw-btn-text
. The namebtn
was just too generic. - mixins from
v-effects
removed, usetw-shadow-level-X
.left-box-shadow-level-1
renamed totw-shadow-level-1-rtl
. Fixed the opacity oftw-shadow-level-1-rtl
not matchingtw-shadow-level-1
(0.1 -> 0.2). - mixins from
z-index
removed, usetw-z-<name_of_level>
, e.g.tw-z-notification
.
None
None
- deprecated
ec-grid
and replaced with bootstrap/tailwind grid based on flexbox. Usetw-grid
instead.
- deprecated
ec-p--*
utilities, usetw-p-*
instead. - deprecated
ec-m--*
utilities, usetw-m-*
,tw-m-auto
instead. - expanded spacing range from
0, 4, 8, 12, 16, 20, 24, 36, 40
to0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 48, 56, 64
.