The Shulchan Aruch · Orach Chayim
אורח חיים תרי״אOrach Chayim 611
Siman 611 of 697 in Orach Chayim — 2 se'ifim
הלכות יום הכיפוריםLaws of Yom Kippur· siman 611
Se’if 1א׳
יוֹם הַכִּפּוּרִים לֵילוֹ כְּיוֹמוֹ לְכָל דָּבָר. וּמָה הֵם הַדְּבָרִים הָאֲסוּרִים בּוֹ; מְלָאכָה, אֲכִילָה, שְׁתִיָּה, רְחִיצָה, סִיכָה, נְעִילַת הַסַנְדָּל, תַּשְׁמִישׁ הַמִּטָּה; וְאֵין חִיּוּב כָּרֵת אֶלָּא עַל מְלָאכָה וַאֲכִילָה וּשְׁתִיָּה.
The eve of Yom Kippur is identical [in practice] to the day. What is forbidden on Yom Kippur? Labour, eating and drinking, washing, anointment, wearing [leather] shoes, and sexual relations. However, only labour and eating and drinking are punishable by Karet, (divine excommunication).
Se’if 2ב׳
כָּל מְלָאכָה שֶׁחַיָּבִים עָלֶיהָ בְּשַׁבָּת, חַיָּבִים עָלֶיהָ בְּיוֹם הַכִּפּוּרִים; וְכָל שֶׁבְּשַׁבָּת פָּטוּר אֲבָל אָסוּר, גַּם בְּיוֹם הַכִּפּוּרִים כֵּן, אֶלָּא שֶׁבְּשַׁבָּת זְדוֹנוֹ בִּסְקִילָה, וְיוֹם הַכִּפּוּרִים זְדוֹנוֹ בְּכָרֵת; וְכָל שֶׁאָסוּר לְטַלְטְלוֹ בְּשַׁבָּת אָסוּר לְטַלְטְלוֹ בְּיוֹם כִּפּוּר. וְהִתִּירוּ לְקַנֵּב יָרָק וְלִפְצֹעַ אֱגוֹזִים מִן הַמִּנְחָה וּלְמַעְלָה, כְּשֶׁחָל בַּחֹל, וְהָאִדָּנָא נָהֲגוּ לֶאֱסֹר. הַגָּה: אִם נָפְלָה דְּלֵקָה בְּיוֹם הַכִּפּוּרִים, מֻתָּר לְהַצִּיל סְעֻדָּה אַחַת לְצֹרֶךְ לַיְלָה, כְּמוֹ שֶׁמַּצִּיל בְּשַׁבָּת לִסְעֻדַּת מִנְחָה (רַ"ן פֶּרֶק כָּל כִּתְבֵי). וּכְבָר נִתְבָּאֵר סִימָן של"ד כֵּיצַד נוֹהֲגִים בַּזְּמַן הַזֶּה בִּדְלֵקָה בְּשַׁבָּת, וְהוּא הַדִּין בְּיוֹם כִּפּוּר. וְנָהֲגוּ שֶׁהַתִּינוֹקוֹת מְשַׂחֲקִים בֶּאֱגוֹזִים (אֲגֻדָּה וּמַהֲרִי"ל), וְאֵין לִמְחוֹת בְּיָדָם אֲפִלּוּ קֹדֶם מִנְחָה; וְנִשְׁתַּרְבֵּב הַמִּנְהָג מִדִּין הַפְצָעַת אֱגוֹזִים הַנִּזְכָּר (דִּבְרֵי עַצְמוֹ).
Any laborous activity for which one is liable on Shabbat, one is liable on Yom Kippur; anything which is forbidden on Shabbat without liability is also forbidden on Yom Kippur - except that when it is done intentionally on Shabbat one is punished by stoning, and on Yom Kippur one is punished by Karet, (divine excommunication). Anything which may not be handled on Shabbat may not be handled on Yom Kippur - it is permitted to prepare vegetables and crack nuts after mincha time on weekdays, but now we tend to forbid this. Rama: If there is a fire on Yom Kippur, one can save one meal's worth for night-time, just as on Shabbat one can save for the afternoon meal. In chapter 334, there are more details on how this is applied today, and this applies to Yom Kippur too. Children have a custom to play with walnuts, and one should not stop them, even before the afternoon, and this custom came from the rule of cracking nuts mentioned above.
Shulchan Aruch, Orach Chayim — Torat Emet 363 edition, via Sefaria — public domain
English: Sefaria Community Translation — CC0