v0.92.0 Release Notes #786
endigo9740
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
News
Svelte Sirens
Brittney from Svelte Sirens has just completed and launched a new version of their site built with Skeleton! Check it out!
https://sveltesirens.dev/
Support Skeleton on GitHub Sponsors
We're happy to announce that Skeleton is now available to support through GitHub Sponsors.
You can also find us on Ko-Fi and Patreon if you prefer.
RSS Support for Blog
Thanks to @LukeHagar we now have an RSS feed for the Skeleton blog:
Release Notes
Release: https://github.com/skeletonlabs/skeleton/releases/tag/0.92.0
Hey everyone, today's update includes a slew of new Elements and Components, as well as highly requested features such as Tailwind IntelliSense. This release also represents a huge leap forward towards our v1 milestones and roadmap. Given this, you may notice fewer library features introduced as we shift our focus to polish, refinement, and bugfixes. With the goal of reaching a stable Release Candidate in the coming weeks.
Summary
Tailwind Plugin Overhaul - #650
After rigorous trial and effort we've overhauled the Skeleton Tailwind plugin to support a number of new improvements. The general idea is that Tailwind prefers all custom styling be provided to the plugin in "CSS-in-JS" format, which allows for features such as IntelliSense for the Tailwind VS Code extension. Given the scale and scope of custom styles within Skeleton, this posed some logistical issue that we had to overcome. We've detailed the changes below, along with a minor migration guide for existing projects.
Design Tokens
The Skeleton design tokens are made up of many repetitious classes with typically only a minor change - such as the color (ex:
.bg-primary-50-900-token
,.bg-secondary-50-900-token
, etc.). Given this, the new plugin now dynamically generates these classes using a much more modular approach. These custom styles are then injected directly into the plugin which means we no longer have to import token stylesheets (ever), and the plugin immediately provides IntelliSense if you have the Tailwind VS Code extension installed.Tailwind IntelliSense
While design token classes represent the majority of classes in Skeleton, you probably find yourself using element classes such as
.btn
and.card
much more often. To provide IntelliSense for these classes, CokaKoala (aka @AdrianGonz97) has worked his magic to build a custom CSS to CSS-in-JS transpiler that inserts a version of these classes into the plugin purely for Tailwind IntelliSense support. This means we now provide 100% IntelliSense coverage for all Skeleton classes!If you don't already have the Tailwind Extension in VS Code, you can find it here. In your project, open
tailwind.config.cjs
in the root of your project and rename the oldtheme.cjs
plugin toskeleton.cjs
. As follows:Then make sure to restart VS Code to ensure the Tailwind extension is made aware of the plugin changes.
Additional Tailwind Elements Added - #756
In Skeleton v0.41.48 we introduced the concept of Tailwind Elements, which are visual UI elements generated using HTML and CSS (via Tailwind). These provide a much simpler way to implement common features such as buttons, cards, lists, etc. In today's update we're converting even more Components to Elements, including:
Note that these should be visually indistinguishable from their component counterparts, but require no extra imports and are much easier to customize on-the-fly. Just mix and match utility classes as expected.
Migrating Alerts, Breadcrumbs, Dividers
The process for converting from a component to an element is fairly straight forward.
import
statement within the<script>
tag on that pageMigrating Gradient Alerts
Unliked the above features, we feel the Gradient Headings can be easily recreated with pure Tailwind. We will not be providing a direct replacement, but rather suggest you recreate these using the @apply class technique shown here.
Table of Contents - #357
Allows users to quickly navigate the hierarchy of page headings. This component will scan and auto-generate links based on the headings present on a designated portion of your visible page. This comes with a number of useful options, so please consult the Usage documentation to learn more.
Chips - #375
Interactive elements for handling actions, selection, or filtering.
Chip Elements - docs
We've provided a variety of chip styles allowing you to create these elements on demand. See the various examples documented on the Usage page in the documentation.
Input Chip - docs
A dedicated Svelte component for handling multi-select in a single combined input. Options can currently be whitelisted and we plan to support the auto-complete feature in the future.
Minor Improvements
forms.css
:New Component: Color Picker #376
Add overflow-auto to modals to make them scrollable #754
Chore/stepper clickable #752
Bugfixes
White flicker when clicking on form fields #760
undefined
value by default:Listbox selection disabled if store has undefined value #759
Vite/Tailwind do not like font imports at the bottom of theme files #770
Documentation
Search improvements #757
Implement Font Awesome icons #749
Add blog to mobile navigation #744
Logistical Fix in Avatars #753
Beta Was this translation helpful? Give feedback.
All reactions