Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="pz-game-field" id="pz-game-root"><article class="Board-module_board__gdu5I" data-testid="connections-board"><form id="default-choices" class="Board-module_form__B5pmo"><h2>Create four groups of four!</h2><fieldset class="Board-module_boardContainer__vObNY"><legend class="visually-hidden">Select four items that have something in common</legend><div><div class="Cards-module_cardsContainer__O3T5q Cards-module_cardsContainer4__sK7TL"><label for="inner-card-0" class="Card-module_label__U_Q2H Card-module_labelXXXLg__LzdWa" data-testid="card-label" data-flip-config="{&quot;translate&quot;:true,&quot;scale&quot;:true,&quot;opacity&quot;:true}" data-flip-id="NERVE" data-portal-key="portal"><input class="visually-hidden" type="checkbox" id="inner-card-0" name="inner-card-0" data-testid="card-input" value="NERVE">NERVE</label><label for="inner-card-1" class="Card-module_label__U_Q2H Card-module_labelXXXLg__LzdWa" data-testid="card-label" data-flip-config="{&quot;translate&quot;:true,&quot;scale&quot;:true,&quot;opacity&quot;:true}" data-flip-id="SPLASH" data-portal-key="portal"><input class="visually-hidden" type="checkbox" id="inner-card-1" name="inner-card-1" data-testid="card-input" value="SPLASH">SPLASH</label><label for="inner-card-2" class="Card-module_label__U_Q2H Card-module_labelXXXLg__LzdWa" data-testid="card-label" data-flip-config="{&quot;translate&quot;:true,&quot;scale&quot;:true,&quot;opacity&quot;:true}" data-flip-id="EXTRA" data-portal-key="portal"><input class="visually-hidden" type="checkbox" id="inner-card-2" name="inner-card-2" data-testid="card-input" value="EXTRA">EXTRA</label><label for="inner-card-3" class="Card-module_label__U_Q2H Card-module_labelXXXLg__LzdWa" data-testid="card-label" data-flip-config="{&quot;translate&quot;:true,&quot;scale&quot;:true,&quot;opacity&quot;:true}" data-flip-id="RELISH" data-portal-key="portal"><input class="visually-hidden" type="checkbox" id="inner-card-3" name="inner-card-3" data-testid="card-input" value="RELISH">RELISH</label><label for="inner-card-4" class="Card-module_label__U_Q2H Card-module_labelXXXLg__LzdWa" data-testid="card-label" data-flip-config="{&quot;translate&quot;:true,&quot;scale&quot;:true,&quot;opacity&quot;:true}" data-flip-id="GRAVY" data-portal-key="portal"><input class="visually-hidden" type="checkbox" id="inner-card-4" name="inner-card-4" data-testid="card-input" value="GRAVY">GRAVY</label><label for="inner-card-5" class="Card-module_label__U_Q2H Card-module_labelXXXLg__LzdWa" data-testid="card-label" data-flip-config="{&quot;translate&quot;:true,&quot;scale&quot;:true,&quot;opacity&quot;:true}" data-flip-id="TREASURE" data-portal-key="portal"><input class="visually-hidden" type="checkbox" id="inner-card-5" name="inner-card-5" data-testid="card-input" value="TREASURE">TREASURE</label><label for="inner-card-6" class="Card-module_label__U_Q2H Card-module_labelXXXLg__LzdWa" data-testid="card-label" data-flip-config="{&quot;translate&quot;:true,&quot;scale&quot;:true,&quot;opacity&quot;:true}" data-flip-id="SAUCE" data-portal-key="portal"><input class="visually-hidden" type="checkbox" id="inner-card-6" name="inner-card-6" data-testid="card-input" value="SAUCE">SAUCE</label><label for="inner-card-7" class="Card-module_label__U_Q2H Card-module_labelXXXLg__LzdWa" data-testid="card-label" data-flip-config="{&quot;translate&quot;:true,&quot;scale&quot;:true,&quot;opacity&quot;:true}" data-flip-id="DIP" data-portal-key="portal"><input class="visually-hidden" type="checkbox" id="inner-card-7" name="inner-card-7" data-testid="card-input" value="DIP">DIP</label><label for="inner-card-8" class="Card-module_label__U_Q2H Card-module_labelXXXLg__LzdWa" data-testid="card-label" data-flip-config="{&quot;translate&quot;:true,&quot;scale&quot;:true,&quot;opacity&quot;:true}" data-flip-id="DIVE" data-portal-key="portal"><input class="visually-hidden" type="checkbox" id="inner-card-8" name="inner-card-8" data-testid="card-input" value="DIVE">DIVE</label><label for="inner-card-9" class="Card-module_label__U_Q2H Card-module_labelXXXLg__LzdWa" data-testid="card-label" data-flip-config="{&quot;translate&quot;:true,&quot;scale&quot;:true,&quot;opacity&quot;:true}" data-flip-id="BONUS" data-portal-key="portal"><input class="visually-hidden" type="checkbox" id="inner-card-9" name="inner-card-9" data-testid="card-input" value="BONUS">BONUS</label><label for="inner-card-10" class="Card-module_label__U_Q2H Card-module_labelXXXLg__LzdWa" data-testid="card-label" data-flip-config="{&quot;translate&quot;:true,&quot;scale&quot;:true,&quot;opacity&quot;:true}" data-flip-id="VALUE" data-portal-key="portal"><input class="visually-hidden" type="checkbox" id="inner-card-10" name="inner-card-10" data-testid="card-input" value="VALUE">VALUE</label><label for="inner-card-11" class="Card-module_label__U_Q2H Card-module_labelXXXLg__LzdWa" data-testid="card-label" data-flip-config="{&quot;translate&quot;:true,&quot;scale&quot;:true,&quot;opacity&quot;:true}" data-flip-id="BRASS" data-portal-key="portal"><input class="visually-hidden" type="checkbox" id="inner-card-11" name="inner-card-11" data-testid="card-input" value="BRASS">BRASS</label><label for="inner-card-12" class="Card-module_label__U_Q2H Card-module_labelXXXLg__LzdWa Card-module_selected__cN2eT" data-testid="card-label" data-flip-config="{&quot;translate&quot;:true,&quot;scale&quot;:true,&quot;opacity&quot;:true}" data-flip-id="FROSTING" data-portal-key="portal"><input class="visually-hidden" type="checkbox" id="inner-card-12" name="inner-card-12" data-testid="card-input" value="FROSTING" checked="">FROSTING</label><label for="inner-card-13" class="Card-module_label__U_Q2H Card-module_labelXXXLg__LzdWa" data-testid="card-label" data-flip-config="{&quot;translate&quot;:true,&quot;scale&quot;:true,&quot;opacity&quot;:true}" data-flip-id="CHEEK" data-portal-key="portal"><input class="visually-hidden" type="checkbox" id="inner-card-13" name="inner-card-13" data-testid="card-input" value="CHEEK">CHEEK</label><label for="inner-card-14" class="Card-module_label__U_Q2H Card-module_labelXXXLg__LzdWa" data-testid="card-label" data-flip-config="{&quot;translate&quot;:true,&quot;scale&quot;:true,&quot;opacity&quot;:true}" data-flip-id="SWIM" data-portal-key="portal"><input class="visually-hidden" type="checkbox" id="inner-card-14" name="inner-card-14" data-testid="card-input" value="SWIM">SWIM</label><label for="inner-card-15" class="Card-module_label__U_Q2H Card-module_labelXXXLg__LzdWa" data-testid="card-label" data-flip-config="{&quot;translate&quot;:true,&quot;scale&quot;:true,&quot;opacity&quot;:true}" data-flip-id="SAVOR" data-portal-key="portal"><input class="visually-hidden" type="checkbox" id="inner-card-15" name="inner-card-15" data-testid="card-input" value="SAVOR">SAVOR</label></div></div></fieldset></form><section><span class="Mistakes-module_mistakesWrapper__LGl68 Mistakes-module_showMistakes__q6EWj"><span class="visually-hidden" aria-atomic="true" aria-live="assertive" data-testid="mistake-count">4 mistakes remaining out of 4</span><p class="Mistakes-module_mistakesContent__nlijY" aria-hidden="true" data-testid="mistake-text">Mistakes remaining:<span class="Mistakes-module_mistakesRemainingBubbles__iTrFU"><span class="Mistakes-module_bubble__nDlOh" data-testid="mistake-bubble"></span><span class="Mistakes-module_bubble__nDlOh" data-testid="mistake-bubble"></span><span class="Mistakes-module_bubble__nDlOh" data-testid="mistake-bubble"></span><span class="Mistakes-module_bubble__nDlOh" data-testid="mistake-bubble"></span></span></p></span></section><section class="Board-module_boardActionGroup__mUDT8"><button type="button" form="default-choices" data-testid="shuffle-btn" class="ActionButton-module_button__IlhXt">Shuffle</button><button type="button" form="default-choices" data-testid="deselect-btn" class="ActionButton-module_button__IlhXt ActionButton-module_medium__Zwxfw">Deselect all</button><button disabled="" type="submit" form="default-choices" data-testid="submit-btn" class="ActionButton-module_button__IlhXt ActionButton-module_xSmall__WP4hl">Submit</button></section></article></div>
              
            
!

CSS

              
                .pz-game-field {
  -webkit-text-size-adjust: 100%;
    --inter-ad-skip-button-height: 52px;
    --inter-ad-top-bar-height: 34px;
    --inter-ad-bottom-bar-height: 24px;
    --games-yellow: #fbd300;
    --xd-blue: #6493e6;
    --mini-blue: #95befa;
    --tiles-green: #b5e352;
    --sb-yellow: #f7da21;
    --vertex-green: #54bcc7;
    --letterboxed-red: #fc716b;
    --sudoku-orange: #fb9b00;
    --wordle-gray: #d3d6da;
    --chess-beige: #ede1ca;
    --connections-purple: #b4a8ff;
    --strands-mint: #b2ded8;
    --letterboxed-pink: #faa6a4;
    --lb-red: #fc716b;
    --white: #fff;
    --dark-black: #121212;
    --med-black: #1b1b1b;
    --black: #2a2a2a;
    --darkest-gray: #363636;
    --extra-dark-gray: #424242;
    --darker-gray: #5a5a5a;
    --dark-gray: #727272;
    --gray2: #8b8b8b;
    --gray: #979797;
    --light-gray: #a3a3a3;
    --lighter-gray: #bbb;
    --extra-light-gray: #dfdfdf;
    --lightest-gray: #ebebeb;
    --cool-gray: #f8f8f8;
    --scrim: #12121260;
    --light-scrim: #ffffff60;
    --accent-xd-blue: #4f85e5;
    --accent-blue: #346eb7;
    --accent-light-blue: #6ba1dd;
    --transparent: #fff0;
    --connections-light-beige: #efefe6;
    --connections-beige: ##cfcfbf;
    --connections-dark-beige: ##a39f95;
    --connections-darker-beige: #656458;
    --connections-extra-dark-beige: #5a594e;
    --connections-yellow: #f9df6d;
    --connections-maroon: #ba81c5;
    --connections-blue: #b0c4ef;
    --connections-green: #a0c35a;
    --connections-dark-purple: #861cab;
    --sb-dark-gray: #38383f;
    --sb-gray: #e7e7e7;
    --sb-light-yellow: #ffeca0;
    --sb-dark-yellow: #847306;
    --strands-yellow: #f8cd05;
    --strands-blue: #aedfee;
    --strands-dark-mint: #3f9ebc;
    --strands-darker-mint: #0f7ea0;
    --strands-dark-yellow: #db9e00;
    --lb-darker-red: #fc5f5a;
    --lb-dark-red: #fc5f5ad9;
    --lb-light-red: #fc5f5a4d;
    --sudoku-yellow: #f8cd05;
    --sudoku-red: #ff4b56;
    --sudoku-blue: #2c64d5;
    --sudoku-light-blue: #6e95e2;
    --connectionsbot-walking-icon: url("./assets/connections/connections-bot-mascot.svg");
    --wordlebot-walking-icon: url("https://www.nytimes.com/games-assets/v2/assets/wordle/nav-icons/WordleBot-Walking-Icon-Normalized.svg");
    -webkit-font-smoothing: antialiased;
    --text: var(--dark-black);
    --text-subdued: var(--darkest-gray);
    --text-secondary: var(--darker-gray);
    --text-secondary-subdued: var(--dark-gray);
    --text-secondary-inverse: var(--lighter-gray);
    --text-constant: var(--dark-black);
    --text-alternate: var(--cool-gray);
    --text-alternate-constant: var(--cool-gray);
    --text-link: var(--accent-blue);
    --text-tertiary: var(--gray2);
    --text-quarternary: var(--lightest-gray);
    --bg-games: var(--games-yellow);
    --bg-page: var(--white);
    --bg-page-subdued: var(--cool-gray);
    --bg-modal: var(--white);
    --bg-moment: var(--white);
    --bg-toolbar: var(--white);
    --bg-toolbar-selected: var(--lightest-gray);
    --bg-dropdown: var(--white);
    --bg-scrim: var(--light-scrim);
    --bg-tooltip: var(--black);
    --bg-toast: var(--dark-black);
    --bg-toast-alternate-constant: var(--white);
    --bg-toast-constant: var(--dark-black);
    --bg-toggle-deselected: var(--lightest-gray);
    --bg-toggle-selected: var(--white);
    --bg-statsbar: var(--gray2);
    --bg-slider: var(--dark-gray);
    --bg-loading: var(--light-scrim);
    --bg-btn-emphasis: var(--dark-black);
    --bg-btn-emphasis-constant: var(--dark-black);
    --bg-btn-standard: var(--transparent);
    --stroke: var(--dark-black);
    --stroke-secondary: var(--gray);
    --stroke-tertiary: var(--extra-light-gray);
    --stroke-constant: var(--dark-black);
    --text-connections-mistake: var(--connections-extra-dark-beige);
    --bg-tile-connections: var(--connections-light-beige);
    --bg-tile-connections-selected: var(--connections-extra-dark-beige);
    --bg-connections-straighforward: var(--connections-yellow);
    --bg-connections-easy: var(--connections-green);
    --bg-connections-medium: var(--connections-blue);
    --bg-connections-tricky: var(--connections-maroon);
    --bg-statsbar-connections: var(--connections-dark-purple);
    --text-sb-progress: var(--lightest-gray);
    --bg-tile-sb: var(--sb-gray);
    --bg-toast-sb-error: var(--dark-black);
    --bg-sb-light: var(--sb-light-yellow);
    --text-strands-theme: var(--strands-dark-mint);
    --text-strands-theme-emphasis: var(--strands-darker-mint);
    --text-strands-theme-inverse: var(--dark-black);
    --text-spangram: var(--strands-dark-yellow);
    --bg-strands-theme: var(--strands-blue);
    --bg-spangram: var(--strands-yellow);
    --text-sudoku-error: var(--sudoku-red);
    --text-sudoku-correct: var(--sudoku-blue);
    --bg-tile-sudoku-selected: var(--sudoku-yellow);
    --bg-tile-sudoku-filled: var(--extra-light-gray);
    --bg-tile-sudoku-unfilled: var(--white);
    --bg-toggle-sudoku-deselected: var(--white);
    --bg-toggle-sudoku-selected: var(--dark-black);
    --text-lb: var(--lb-darker-red);
    --stroke-lb: var(--lb-darker-red);
    --stroke-lb-complete: var(--lb-light-red);
    visibility: visible;
    box-sizing: inherit;
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline;
    display: flex;
    flex-direction: column;
    background: var(--bg-page);
    color: var(--text);
    flex: 1 0 auto;
}

.Cards-module_cardsContainer__O3T5q  {
    -webkit-text-size-adjust: 100%;
    --inter-ad-skip-button-height: 52px;
    --inter-ad-top-bar-height: 34px;
    --inter-ad-bottom-bar-height: 24px;
    --games-yellow: #fbd300;
    --xd-blue: #6493e6;
    --mini-blue: #95befa;
    --tiles-green: #b5e352;
    --sb-yellow: #f7da21;
    --vertex-green: #54bcc7;
    --letterboxed-red: #fc716b;
    --sudoku-orange: #fb9b00;
    --wordle-gray: #d3d6da;
    --chess-beige: #ede1ca;
    --connections-purple: #b4a8ff;
    --strands-mint: #b2ded8;
    --letterboxed-pink: #faa6a4;
    --lb-red: #fc716b;
    --white: #fff;
    --dark-black: #121212;
    --med-black: #1b1b1b;
    --black: #2a2a2a;
    --darkest-gray: #363636;
    --extra-dark-gray: #424242;
    --darker-gray: #5a5a5a;
    --dark-gray: #727272;
    --gray2: #8b8b8b;
    --gray: #979797;
    --light-gray: #a3a3a3;
    --lighter-gray: #bbb;
    --extra-light-gray: #dfdfdf;
    --lightest-gray: #ebebeb;
    --cool-gray: #f8f8f8;
    --scrim: #12121260;
    --light-scrim: #ffffff60;
    --accent-xd-blue: #4f85e5;
    --accent-blue: #346eb7;
    --accent-light-blue: #6ba1dd;
    --transparent: #fff0;
    --connections-light-beige: #efefe6;
    --connections-beige: ##cfcfbf;
    --connections-dark-beige: ##a39f95;
    --connections-darker-beige: #656458;
    --connections-extra-dark-beige: #5a594e;
    --connections-yellow: #f9df6d;
    --connections-maroon: #ba81c5;
    --connections-blue: #b0c4ef;
    --connections-green: #a0c35a;
    --connections-dark-purple: #861cab;
    --sb-dark-gray: #38383f;
    --sb-gray: #e7e7e7;
    --sb-light-yellow: #ffeca0;
    --sb-dark-yellow: #847306;
    --strands-yellow: #f8cd05;
    --strands-blue: #aedfee;
    --strands-dark-mint: #3f9ebc;
    --strands-darker-mint: #0f7ea0;
    --strands-dark-yellow: #db9e00;
    --lb-darker-red: #fc5f5a;
    --lb-dark-red: #fc5f5ad9;
    --lb-light-red: #fc5f5a4d;
    --sudoku-yellow: #f8cd05;
    --sudoku-red: #ff4b56;
    --sudoku-blue: #2c64d5;
    --sudoku-light-blue: #6e95e2;
    --connectionsbot-walking-icon: url("./assets/connections/connections-bot-mascot.svg");
    --wordlebot-walking-icon: url("https://www.nytimes.com/games-assets/v2/assets/wordle/nav-icons/WordleBot-Walking-Icon-Normalized.svg");
    -webkit-font-smoothing: antialiased;
    --text: var(--dark-black);
    --text-subdued: var(--darkest-gray);
    --text-secondary: var(--darker-gray);
    --text-secondary-subdued: var(--dark-gray);
    --text-secondary-inverse: var(--lighter-gray);
    --text-constant: var(--dark-black);
    --text-alternate: var(--cool-gray);
    --text-alternate-constant: var(--cool-gray);
    --text-link: var(--accent-blue);
    --text-tertiary: var(--gray2);
    --text-quarternary: var(--lightest-gray);
    --bg-games: var(--games-yellow);
    --bg-page: var(--white);
    --bg-page-subdued: var(--cool-gray);
    --bg-modal: var(--white);
    --bg-moment: var(--white);
    --bg-toolbar: var(--white);
    --bg-toolbar-selected: var(--lightest-gray);
    --bg-dropdown: var(--white);
    --bg-scrim: var(--light-scrim);
    --bg-tooltip: var(--black);
    --bg-toast: var(--dark-black);
    --bg-toast-alternate-constant: var(--white);
    --bg-toast-constant: var(--dark-black);
    --bg-toggle-deselected: var(--lightest-gray);
    --bg-toggle-selected: var(--white);
    --bg-statsbar: var(--gray2);
    --bg-slider: var(--dark-gray);
    --bg-loading: var(--light-scrim);
    --bg-btn-emphasis: var(--dark-black);
    --bg-btn-emphasis-constant: var(--dark-black);
    --bg-btn-standard: var(--transparent);
    --stroke: var(--dark-black);
    --stroke-secondary: var(--gray);
    --stroke-tertiary: var(--extra-light-gray);
    --stroke-constant: var(--dark-black);
    --text-connections-mistake: var(--connections-extra-dark-beige);
    --bg-tile-connections: var(--connections-light-beige);
    --bg-tile-connections-selected: var(--connections-extra-dark-beige);
    --bg-connections-straighforward: var(--connections-yellow);
    --bg-connections-easy: var(--connections-green);
    --bg-connections-medium: var(--connections-blue);
    --bg-connections-tricky: var(--connections-maroon);
    --bg-statsbar-connections: var(--connections-dark-purple);
    --text-sb-progress: var(--lightest-gray);
    --bg-tile-sb: var(--sb-gray);
    --bg-toast-sb-error: var(--dark-black);
    --bg-sb-light: var(--sb-light-yellow);
    --text-strands-theme: var(--strands-dark-mint);
    --text-strands-theme-emphasis: var(--strands-darker-mint);
    --text-strands-theme-inverse: var(--dark-black);
    --text-spangram: var(--strands-dark-yellow);
    --bg-strands-theme: var(--strands-blue);
    --bg-spangram: var(--strands-yellow);
    --text-sudoku-error: var(--sudoku-red);
    --text-sudoku-correct: var(--sudoku-blue);
    --bg-tile-sudoku-selected: var(--sudoku-yellow);
    --bg-tile-sudoku-filled: var(--extra-light-gray);
    --bg-tile-sudoku-unfilled: var(--white);
    --bg-toggle-sudoku-deselected: var(--white);
    --bg-toggle-sudoku-selected: var(--dark-black);
    --text-lb: var(--lb-darker-red);
    --stroke-lb: var(--lb-darker-red);
    --stroke-lb-complete: var(--lb-light-red);
    visibility: visible;
    color: var(--text);
    text-align: center;
    box-sizing: inherit;
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline;
    display: grid;
    gap: 8px;
    position: absolute;
    width: calc(3 * 8px + 4 * 150px);
    bottom: 0;
    grid-template-columns: repeat(4, 1fr);
    min-height: 0;
    min-width: 0;
    grid-template-rows: repeat(4, 1fr);
    height: calc(3 * 8px + 4 * 80px);
}

.Card-module_label__U_Q2H  {
    -webkit-text-size-adjust: 100%;
    --inter-ad-skip-button-height: 52px;
    --inter-ad-top-bar-height: 34px;
    --inter-ad-bottom-bar-height: 24px;
    --games-yellow: #fbd300;
    --xd-blue: #6493e6;
    --mini-blue: #95befa;
    --tiles-green: #b5e352;
    --sb-yellow: #f7da21;
    --vertex-green: #54bcc7;
    --letterboxed-red: #fc716b;
    --sudoku-orange: #fb9b00;
    --wordle-gray: #d3d6da;
    --chess-beige: #ede1ca;
    --connections-purple: #b4a8ff;
    --strands-mint: #b2ded8;
    --letterboxed-pink: #faa6a4;
    --lb-red: #fc716b;
    --white: #fff;
    --dark-black: #121212;
    --med-black: #1b1b1b;
    --black: #2a2a2a;
    --darkest-gray: #363636;
    --extra-dark-gray: #424242;
    --darker-gray: #5a5a5a;
    --dark-gray: #727272;
    --gray2: #8b8b8b;
    --gray: #979797;
    --light-gray: #a3a3a3;
    --lighter-gray: #bbb;
    --extra-light-gray: #dfdfdf;
    --lightest-gray: #ebebeb;
    --cool-gray: #f8f8f8;
    --scrim: #12121260;
    --light-scrim: #ffffff60;
    --accent-xd-blue: #4f85e5;
    --accent-blue: #346eb7;
    --accent-light-blue: #6ba1dd;
    --transparent: #fff0;
    --connections-light-beige: #efefe6;
    --connections-beige: ##cfcfbf;
    --connections-dark-beige: ##a39f95;
    --connections-darker-beige: #656458;
    --connections-extra-dark-beige: #5a594e;
    --connections-yellow: #f9df6d;
    --connections-maroon: #ba81c5;
    --connections-blue: #b0c4ef;
    --connections-green: #a0c35a;
    --connections-dark-purple: #861cab;
    --sb-dark-gray: #38383f;
    --sb-gray: #e7e7e7;
    --sb-light-yellow: #ffeca0;
    --sb-dark-yellow: #847306;
    --strands-yellow: #f8cd05;
    --strands-blue: #aedfee;
    --strands-dark-mint: #3f9ebc;
    --strands-darker-mint: #0f7ea0;
    --strands-dark-yellow: #db9e00;
    --lb-darker-red: #fc5f5a;
    --lb-dark-red: #fc5f5ad9;
    --lb-light-red: #fc5f5a4d;
    --sudoku-yellow: #f8cd05;
    --sudoku-red: #ff4b56;
    --sudoku-blue: #2c64d5;
    --sudoku-light-blue: #6e95e2;
    --connectionsbot-walking-icon: url("./assets/connections/connections-bot-mascot.svg");
    --wordlebot-walking-icon: url("https://www.nytimes.com/games-assets/v2/assets/wordle/nav-icons/WordleBot-Walking-Icon-Normalized.svg");
    -webkit-font-smoothing: antialiased;
    --text: var(--dark-black);
    --text-subdued: var(--darkest-gray);
    --text-secondary: var(--darker-gray);
    --text-secondary-subdued: var(--dark-gray);
    --text-secondary-inverse: var(--lighter-gray);
    --text-constant: var(--dark-black);
    --text-alternate: var(--cool-gray);
    --text-alternate-constant: var(--cool-gray);
    --text-link: var(--accent-blue);
    --text-tertiary: var(--gray2);
    --text-quarternary: var(--lightest-gray);
    --bg-games: var(--games-yellow);
    --bg-page: var(--white);
    --bg-page-subdued: var(--cool-gray);
    --bg-modal: var(--white);
    --bg-moment: var(--white);
    --bg-toolbar: var(--white);
    --bg-toolbar-selected: var(--lightest-gray);
    --bg-dropdown: var(--white);
    --bg-scrim: var(--light-scrim);
    --bg-tooltip: var(--black);
    --bg-toast: var(--dark-black);
    --bg-toast-alternate-constant: var(--white);
    --bg-toast-constant: var(--dark-black);
    --bg-toggle-deselected: var(--lightest-gray);
    --bg-toggle-selected: var(--white);
    --bg-statsbar: var(--gray2);
    --bg-slider: var(--dark-gray);
    --bg-loading: var(--light-scrim);
    --bg-btn-emphasis: var(--dark-black);
    --bg-btn-emphasis-constant: var(--dark-black);
    --bg-btn-standard: var(--transparent);
    --stroke: var(--dark-black);
    --stroke-secondary: var(--gray);
    --stroke-tertiary: var(--extra-light-gray);
    --stroke-constant: var(--dark-black);
    --text-connections-mistake: var(--connections-extra-dark-beige);
    --bg-tile-connections: var(--connections-light-beige);
    --bg-tile-connections-selected: var(--connections-extra-dark-beige);
    --bg-connections-straighforward: var(--connections-yellow);
    --bg-connections-easy: var(--connections-green);
    --bg-connections-medium: var(--connections-blue);
    --bg-connections-tricky: var(--connections-maroon);
    --bg-statsbar-connections: var(--connections-dark-purple);
    --text-sb-progress: var(--lightest-gray);
    --bg-tile-sb: var(--sb-gray);
    --bg-toast-sb-error: var(--dark-black);
    --bg-sb-light: var(--sb-light-yellow);
    --text-strands-theme: var(--strands-dark-mint);
    --text-strands-theme-emphasis: var(--strands-darker-mint);
    --text-strands-theme-inverse: var(--dark-black);
    --text-spangram: var(--strands-dark-yellow);
    --bg-strands-theme: var(--strands-blue);
    --bg-spangram: var(--strands-yellow);
    --text-sudoku-error: var(--sudoku-red);
    --text-sudoku-correct: var(--sudoku-blue);
    --bg-tile-sudoku-selected: var(--sudoku-yellow);
    --bg-tile-sudoku-filled: var(--extra-light-gray);
    --bg-tile-sudoku-unfilled: var(--white);
    --bg-toggle-sudoku-deselected: var(--white);
    --bg-toggle-sudoku-selected: var(--dark-black);
    --text-lb: var(--lb-darker-red);
    --stroke-lb: var(--lb-darker-red);
    --stroke-lb-complete: var(--lb-light-red);
    visibility: visible;
    text-align: center;
    box-sizing: inherit;
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline;
    overflow: hidden;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    border-radius: 6px;
    position: relative;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    background-color: #efefe6;
    color: #000;
    z-index: 0;
    font-size: 20px;
}

.visually-hidden {
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}
              
            
!

JS

              
                gsap.registerPlugin(Draggable);

outerContainer = document.getElementsByTagName("fieldset")[0];
tiles = outerContainer.querySelectorAll('[data-testid="card-label"]');
tileContainer = tiles[0].parentNode;
deselectBtn = document.querySelector('[data-testid="deselect-btn"]');

for (const tile of tiles) {
  tile.style["will-change"] = "transform";
}

function onDragEnd() {
  // Just return the element to where it was.
  gsap.to(this.target, { x: 0, y: 0 });
  // Unselect everything. I couldn't figure out how to interrupt whatever
  // event listener the page is using to select things, so this is the best we
  // can do. Note that this needs to be in `onDragEnd` not `onRelease` or you
  // could never select anything.
  deselectBtn.click();
}

function destroyDraggables() {
  for (const tile of tiles) {
    const draggable = Draggable.get(tile);
    if (draggable != null) {
      draggable.kill();
    }
  }
}

destroyDraggables();

Draggable.create(tiles, {
  onDragEnd,
  minimumMovement: 1,
  dragResistance: 0
});

              
            
!
999px

Console