Skip to content

Conversation

mdo
Copy link
Member

@mdo mdo commented Feb 20, 2025

Yes, it's happening! Here's what's happened so far:

High level

  • Dropped extraneous grid, reboot, and utilities bundles for now (potentially will bring them back)
  • Browser support has been significantly updated, moving to floating targets (e.g., last 1 versions and not dead)
  • Moved from Hugo to Astro for the docs
  • Fixes Investigate adding markdownlint #29919: Added Markdownlint via npm script (npm run lint-mdx)
  • Monorepo structure?

Sass & CSS

Colors, Customizing, Themes, etc

  • Fix Add CSS variables for all color variations #39587: Add all color tints and shades as CSS variables
    • Migrate components to use these CSS variables
  • Simplify theme support down to light/dark mode, media queries only instead of data-bs-theme?
  • Use more light-dark() function?
  • Ensure color-scheme values are being set
  • If using data-bs-theme still, look into how we could set color/bg automatically?
  • Move to oklch over mix of hex/rgb?
  • Use native color-mix() as needed
  • Fix Gray color utilities do not follow text-{color}-{level} convention #38569: Normalize gray color keys in $grays map to the other colors
  • Use relative colors as needed (component variants and states?)
  • P3 colors? Mixin to convert them? Plugin to do so after the fact?
  • Expand the color palette more if we can? Move from semantic colors to full palette for component variants?

Layout

  • Dropped OG flexbox grid and replaced with CSS Grid layout (includes dropping most mixins I think?)
  • Renamed $grid-breakpoints to $breakpoints
  • Renamed -xxl breakpoint to -2xl, as well as all component size variants
  • Sub grid modifier to inherit parent grid cols
  • Add autofill grid option plus 12-col system
  • Explore additional flex utilities to support the move
  • Expand width utilities perhaps? Since grid layout uses grid-specific properties

Reboot

Content

Buttons

  • Move to inline-flex
  • Simplify btn-check code? Restyle checkboxes as button?

Forms

  • Replace custom radio SVG with background/border combo
  • Improve input groups, especially with validation
  • :user-valid/invalid vs :valid/invalid
  • field-sizing: content for textareas?

Utilities & Helpers

JavaScript

  • Drop all things jQuery from our plugins
  • Modernize modal plugin to become a new Dialog plugin, built on the native dialog component
  • Popover native plugin? Dialog for popover to natively disable scroll? Anchor positioning (not yet in FF or Safari)
  • @starting-style for animations?
  • Native drop down menu?
  • Add support to dropdowns for context menu
  • New plugin ideas
    • PIN/2FA input
    • Toggle attribute
    • Date picker
    • Password strength
  • Fixes Expounding on "opt-in for performance reasons" #29378: Automatically make tooltips and popovers work, remove performance mention from docs

Docs


Appendix

Custom properties to disable inheritance in some utility classes?

@property --bs-bg-alpha {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}
@property --bs-text-alpha {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}

Screenshots

Expansive color palette?

CleanShot 2025-01-15 at 21 25 02@2x

More button variants, all generated from a larger map?

CleanShot 2025-01-15 at 21 25 10@2x

CSS grid in action

CleanShot 2025-01-15 at 21 29 21@2x

@mdo mdo requested review from a team as code owners February 20, 2025 17:09
@mdo mdo added the v6 label Feb 20, 2025
@twbs twbs locked and limited conversation to collaborators Feb 20, 2025
@ffoodd
Copy link
Member

ffoodd commented Feb 20, 2025

Wow, what a nice move 🚀

Any way to share ideas for v6? Or should we try some PR to your branch?

@julien-deramond
Copy link
Member

Adding this link as a reference for reusing other elements in case we run into any issues: #38319

@mdo
Copy link
Member Author

mdo commented Feb 20, 2025

@ffoodd Ayyy good to see you! Issues here or jump into our team Slack :). I'll update the original comment with more of what I'm thinking shortly.

@ffoodd
Copy link
Member

ffoodd commented Feb 22, 2025

💜

I only have a few things that comes to my mind :

  • switch to logical properties, to drop RTLCSS and RTL build ;
  • try to rely on modern HTML for components : <dialog>, <details> and <summary>, maybe popover and its API ?
  • use container queries for responsive ?

Probably for v7 but the anchor
positioning API could replace Popper / Floating UI, but we may try as a progressive enhancement.

There could be more, but those are already quite big.

@mdo mdo changed the base branch from main to main-jd-docs-astro March 6, 2025 07:11
@julien-deramond julien-deramond force-pushed the main-jd-docs-astro branch 18 times, most recently from 21573d8 to 3afdd5f Compare March 10, 2025 19:29
@julien-deramond julien-deramond force-pushed the main-jd-docs-astro branch 2 times, most recently from 47b5947 to 55922ed Compare March 27, 2025 05:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.