Skip to content

v0.1.0-beta

Choose a tag to compare

@MatteuSan MatteuSan released this 13 Oct 03:44
· 7 commits to main since this release

New Features

CSS updates

  • The library is now be CDN-able.
<link rel="stylesheet" href="https://unpkg.com/@surpathhub/ugnay@0.1.0-beta/main.css">
  • The library now also supports a CSS API by utilizing the vanilla @import at-rule and CSS custom properties.
@import url('https://unpkg.com/@surpathhub/ugnay@0.1.0-beta/[component_name]/main.css');

/*  
    Examples:
    @import url('https://unpkg.com/@surpathhub/ugnay@0.1.0-beta/SPHAppbar/main.css');
    @import url('https://unpkg.com/@surpathhub/ugnay@0.1.0-beta/SPHButton/main.css');
    @import url('https://unpkg.com/@surpathhub/ugnay@0.1.0-beta/SPHHeader/main.css');
    @import url('https://unpkg.com/@surpathhub/ugnay@0.1.0-beta/SPHTextField/main.css');
*/
.sph-component {
    --sph-component-fill: blue;
    --sph-component-ink: #FFF;
    --sph-component-icon-ink: #FF9900;
}

Improvements

SCSS updates

  • The theming is now transferred to the @use rule's with () helper.
@use '~@surpathhub/ugnay/SPHComponent' with (
    $component-fill: blue,
    $component-ink: #ffffff,
    $component-elevation-color: #ffffff,
    ...
);

@include SPHComponent.use(...);

File structure updates

  • Transferred all components outside of the components folder and exploded on the main src folder.
  • Renamed the core folder to SPHCore.

Additional notes

  • Hello there! After this update, we might put out lesser and lesser commits as we approach the first stable 0.1.0 version. So yeah, that's about it! See y'all in the next update!